Skip to content

Commit

Permalink
Use node-version-file in test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Dec 8, 2023
1 parent 5cb005c commit 5c01fda
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: ['16', '18', '20']
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Test
run: npm test

0 comments on commit 5c01fda

Please sign in to comment.