Skip to content

Commit

Permalink
ci: update Node.js versions to 20.x and 22.x
Browse files Browse the repository at this point in the history
- Drop Node.js 18.x support
- Add Node.js 22.x support
- Update engines field to require Node.js >= 20
  • Loading branch information
vkartk committed Jan 16, 2025
1 parent f3cde65 commit 30a8a00
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@ name: Test

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
env:
BUNNY_ACCESS_KEY: ${{ secrets.BUNNY_ACCESS_KEY }}
BUNNY_STORAGE_ZONE: ${{ secrets.BUNNY_STORAGE_ZONE }}
BUNNY_STORAGE_ZONE: ${{ secrets.BUNNY_STORAGE_ZONE }}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@
},
"dependencies": {
"tsx": "^4.19.2"
},
"engines": {
"node": ">=20"
}
}

0 comments on commit 30a8a00

Please sign in to comment.