Skip to content

Commit 763c517

Browse files
authored
Update github workloads (#478)
* Use latest action versions * Bump node version to current stable v22 * Use caches for node modules to slightly speed up setup * Mild formatting was applied
1 parent 91b7ade commit 763c517

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,20 @@ jobs:
1515
runs-on: macos-latest
1616
steps:
1717
- name: Checkout Branch
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
19+
1920
- name: Setup Node
20-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
2122
with:
22-
node-version: 18.13.0
23-
- name: Install
24-
run: npm install
23+
node-version-file: "package.json"
24+
cache: "npm"
25+
26+
- name: Install Node Packages
27+
run: npm ci
28+
2529
- name: Run linters
2630
run: npm run format
31+
2732
- name: Check if anything changed
2833
run: |
2934
git_status="`LC_ALL=C git status --porcelain --ignore-submodules -unormal 2>&1`"
@@ -35,6 +40,7 @@ jobs:
3540
git diff -U8
3641
exit 1
3742
fi
43+
3844
build:
3945
name: Build
4046
runs-on: macos-latest
@@ -45,19 +51,25 @@ jobs:
4551
- name: Install Firefox
4652
if: ${{ matrix.browser == 'firefox' }}
4753
run: brew install --cask firefox
54+
4855
- name: Checkout Branch
49-
uses: actions/checkout@v3
56+
uses: actions/checkout@v4
57+
5058
- name: Setup Node
51-
uses: actions/setup-node@v3
59+
uses: actions/setup-node@v4
5260
with:
53-
node-version: 18.13.0
54-
- name: Install
55-
run: npm install
56-
- name: Run tests
61+
node-version-file: "package.json"
62+
cache: "npm"
63+
64+
- name: Install Node Packages
65+
run: npm ci
66+
67+
- name: Run Unit Tests
5768
run: |
5869
echo "Running in $BROWSER"
5970
npm run test:${{ matrix.browser }}
60-
- name: Run end2end
71+
72+
- name: Run end2end Tests
6173
run: |
6274
echo "Running in $BROWSER"
6375
npm run test-e2e:${{ matrix.browser }}

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
@@ -3,7 +3,7 @@
33
"version": "3.0.0-alpha",
44
"description": "An open source repository for the Speedometer benchmark.",
55
"engines": {
6-
"node": ">=18.13.0",
6+
"node": ">=22.0.0",
77
"npm": ">=8.19.3"
88
},
99
"repository": {

0 commit comments

Comments
 (0)