Skip to content

Commit

Permalink
ci: test using node version in .nvmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
onebytegone committed Jul 3, 2024
1 parent bd26fc7 commit 04a6679
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
outputs:
nodeVersionList: ${{ steps.makeNodeVersionList.outputs.nodeVersionList }}
steps:
-
uses: actions/checkout@v4
Expand All @@ -18,13 +20,17 @@ jobs:
- run: npm ci
- run: npm run check-node-version
- run: npm run standards
-
id: makeNodeVersionList
run:
echo "nodeVersionList='[ "'"'$(cat .nvmrc)'"'", 20, "'"'"lts/*"'"'", "'"'"latest"'"'" ]'" >> $GITHUB_OUTPUT
test:
needs: [ build ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [ 16, 20, 'lts/*', 'latest' ]
node-version: ${{ fromJson(needs.build.outputs.nodeVersionList) }}
steps:
- uses: actions/checkout@v4
-
Expand Down

0 comments on commit 04a6679

Please sign in to comment.