diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9d71d509..c2c44a81 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,18 +18,21 @@ jobs: - 16 - 18 steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 - - name: "Use Node.js ${{ matrix.node_version }}" - uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3 + - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b + - name: Use Node.js ${{ matrix.node_version }} + uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 with: - node-version: "${{ matrix.node_version }}" + node-version: ${{ matrix.node_version }} cache: npm - run: npm ci - - run: npm test --ignore-scripts # run lint only once + - run: npm test --ignore-scripts test: runs-on: ubuntu-latest needs: test_matrix steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 + - run: exit 1 + if: ${{ needs.test_matrix.result != 'success' }} + - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - run: npm ci - run: npm run lint + if: ${{ always() }}