Skip to content

Commit

Permalink
test: optimize test flow
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 18, 2024
1 parent 6a776b1 commit 1fe879c
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,33 +67,27 @@ jobs:
runs-on: ubuntu-latest
env:
FORCE_COLOR: 3
strategy:
matrix:
node-version: [16.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 22.x

- uses: actions/download-artifact@v4
with:
name: build
- run: npm ci

- name: Unit & types tests
if: matrix.node-version == '20.x'
run: |
npm run test:coverage
npm run test:types
- name: Unit tests
if: matrix.node-version != '20.x'
run: npm run test:unit
run: npm run test:coverage
timeout-minutes: 1

- name: Type tests
run: npm run test:types

smoke-win32-node16:
runs-on: windows-latest
needs: build
Expand Down

0 comments on commit 1fe879c

Please sign in to comment.