Skip to content

Commit

Permalink
infra: introduce and use .nvmrc
Browse files Browse the repository at this point in the history
setup-node automatically uses it now, instead of duplicating that number to the test script
  • Loading branch information
AviVahl committed Dec 31, 2024
1 parent cf4bc89 commit fc7dcd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ name: tests
on: [push, pull_request]
jobs:
tests:
name: node ${{ matrix.node-version }} / ${{ matrix.os }}
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [20]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: ".nvmrc"
cache: npm
- run: npm ci
- run: npm test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20

0 comments on commit fc7dcd5

Please sign in to comment.