Skip to content

Commit c34b98b

Browse files
committed
fix(node): dropped support for the EOL Node 18, added support for Node 24
1 parent 45c932b commit c34b98b

File tree

4 files changed

+21
-22
lines changed

4 files changed

+21
-22
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,32 @@ on:
88
types: [ opened, synchronize ]
99

1010
jobs:
11-
build:
11+
test:
12+
timeout-minutes: 60
1213
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
node-version: [ 18.x, 20.x, 22.x ]
16-
14+
container:
15+
image: ghcr.io/serenity-js/playwright:v1.56.1-noble
1716
steps:
18-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
19-
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v4
21-
with:
22-
node-version: ${{ matrix.node-version }}
23-
- uses: actions/setup-java@v4
17+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
18+
- uses: actions/setup-node@v6
2419
with:
25-
distribution: 'temurin'
26-
java-version: '17'
20+
node-version: '24.11.1'
2721
- name: Setup Node Modules
2822
uses: bahmutov/npm-install@v1
29-
- run: npm run lint
30-
- run: npm test
31-
env:
32-
CI: true
23+
- name: Lint
24+
run: npm run lint
25+
- name: Run tests
26+
run: npm test
27+
- uses: actions/upload-artifact@v5
28+
if: always()
29+
with:
30+
name: serenity-report
31+
path: target/site/serenity
32+
retention-days: 30
3333

3434
- name: GitHub Pages
35+
if: github.ref == 'refs/heads/main'
3536
uses: JamesIves/github-pages-deploy-action@v4.7.4
36-
if: matrix.node-version == '22.x' && github.ref == 'refs/heads/main'
3737
with:
3838
branch: gh-pages
3939
folder: target/site/serenity

.nvmrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
22.21.1
2-
1+
24.11.1

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"homepage": "https://serenity-js.org",
3232
"engines": {
33-
"node": "^18.12 || ^20 || ^22"
33+
"node": "^20 || ^22 || ^24"
3434
},
3535
"dependencies": {
3636
"@serenity-js/assertions": "^3.36.1",

0 commit comments

Comments
 (0)