diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index db9d16e701054..190175519698a 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -17,7 +17,7 @@ jobs: steps: # Checkout the npm/cli repo - - uses: actions/checkout@v1.1.0 + - uses: actions/checkout@v2 # Installs the specific version of nodejs - name: Use nodejs 12.x @@ -30,7 +30,9 @@ jobs: env: DISPATCH_REPO: "benchmarks" DISPATCH_OWNER: "npm" + GITHUB_CONTEXT_EVENT: ${{ toJson(github.event) }} run: | + echo "${GITHUB_CONTEXT_EVENT}" curl \ -s \ -X POST https://api.github.com/repos/${DISPATCH_OWNER}/${DISPATCH_REPO}/dispatches \ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c2c475e0b6a7..339c22300dad5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,31 +13,30 @@ jobs: steps: # Checkout the npm/cli repo - - uses: actions/checkout@v1 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - # Run the installer script - - name: Install dependencies - run: node . install - - # Run the tests - - name: Run Tap tests - run: node . run tap -- "test/tap/*.js" -t600 -Rclassic -c - env: - DEPLOY_VERSION: testing - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_OPTIONAL_TOKEN }} - - # - name: Run sudo tests on Linux - # if: matrix.os == 'ubuntu-latest' - # run: sudo PATH=$PATH $(which node) . run tap -- "test/tap/*.js" --coverage --timeout 600 - - - name: Lint - run: npx standard - - - name: Validate licenses - run: node . run licenses + - uses: actions/checkout@v2 + # Installs the specific version of Node.js + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + # Run the installer script + - name: Install dependencies + run: node . install + + # Run the tests + - name: Run Tap tests + run: node . run tap -- "test/tap/*.js" -t600 -Rclassic -c + env: + DEPLOY_VERSION: testing + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_OPTIONAL_TOKEN }} + + # - name: Run sudo tests on Linux + # if: matrix.os == 'ubuntu-latest' + # run: sudo PATH=$PATH $(which node) . run tap -- "test/tap/*.js" --coverage --timeout 600 + + - name: Lint + run: npx standard + + - name: Validate licenses + run: node . run licenses