Skip to content

Commit 59a66c2

Browse files
author
Gerrit Bertier
committed
Updated Github's test workflow
1 parent 38a99a0 commit 59a66c2

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
11
name: Node.js CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [ main, dev ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
411

512
jobs:
613
test:
714
runs-on: ubuntu-latest
815
steps:
916
- uses: actions/checkout@v4
10-
- uses: actions/setup-node@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
1120
with:
12-
node-version: '20'
13-
- run: npm install
14-
- run: npm test
21+
node-version: '24'
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Run tests
28+
run: npm test

0 commit comments

Comments
 (0)