diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2f19d95..edd7a49 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,10 +5,15 @@ on: [push, pull_request] jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18, 20, "lts/*"] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - - run: yarn - - run: yarn test - - run: yarn lint + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm test + - run: npm run lint