Skip to content

Commit

Permalink
ci: run CI against node 18, 20, and 22
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed May 25, 2024
1 parent f311cfd commit a1ceca8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 14.x
uses: actions/setup-node@master
- name: Setup Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 14.x
node-version: 22.x
registry-url: 'https://registry.npmjs.org'

- name: Get yarn cache directory path
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/verify-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
Expand All @@ -31,7 +31,5 @@ jobs:
- name: Lint
run: yarn lint

- run: npm config set scripts-prepend-node-path true

- name: Test
run: yarn test
10 changes: 4 additions & 6 deletions .github/workflows/verify-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Node 14.x
uses: actions/setup-node@v2
- name: Setup Node 22.x
uses: actions/setup-node@v4
with:
node-version: 14.x
node-version: 22.x
cache: 'yarn'

- name: Install dependencies
Expand All @@ -30,7 +30,5 @@ jobs:
- name: Build
run: yarn build

- run: npm config set scripts-prepend-node-path true

- name: Test
run: yarn test

0 comments on commit a1ceca8

Please sign in to comment.