diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c0c67843..c38a7f34 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,13 +3,31 @@ name: Tests on: [push, pull_request] jobs: - build: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js 22.x + uses: actions/setup-node@v4 + with: + node-version: 22.x + cache: 'yarn' + + - name: Install dependencies + run: yarn --frozen-lockfile --non-interactive --prefer-offline + + - name: Lint + run: yarn lint + + test: + needs: lint runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x, 18.x, 20.x, 22.x] + node-version: [20.x, 22.x, 24.x] steps: - uses: actions/checkout@v4 @@ -24,7 +42,4 @@ jobs: run: yarn --frozen-lockfile --non-interactive --prefer-offline - name: Test - run: yarn test - - - name: Lint - run: yarn lint + run: yarn coverage