Skip to content

Commit

Permalink
Use newer node versions on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dmattia authored Dec 4, 2023
1 parent ae51746 commit ac7f193
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [12.x, 14.x]
node-version: [12.x, 14.x, 16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g "[email protected]"
- run: yarn test

run-pre-commits:
Expand All @@ -34,10 +35,11 @@ jobs:
with:
fetch-depth: 100 # need the history to do a changed files check below (source, origin)
- uses: actions/setup-python@v2
- name: Use Node.js 14.x
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 18.x
- run: npm install -g "[email protected]"
- uses: pre-commit/[email protected]
with:
extra_args: --source ${{ github.event.pull_request.base.sha || 'HEAD~1' }} --origin ${{ github.event.pull_request.head.sha || 'HEAD' }}
Expand All @@ -46,11 +48,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: yarn pnpify depcheck
node-version: 18.x
- run: npm install -g "[email protected]"
- run: yarn depcheck

build-to-npm:
if: github.ref == 'refs/heads/main'
Expand All @@ -64,7 +67,7 @@ jobs:
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '18.x'
- name: Configure NPM authentication
run: |
yarn config set npmAlwaysAuth true
Expand All @@ -84,7 +87,7 @@ jobs:
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '18.x'
- name: Configure Github Packages authentication
run: |
yarn config set npmAlwaysAuth true
Expand Down

0 comments on commit ac7f193

Please sign in to comment.