Skip to content

Commit 2276c3d

Browse files
committed
fixup! upgrade Node to 24.x; use npm cache in main test workflow
1 parent 3c44d1b commit 2276c3d

File tree

5 files changed

+27
-17
lines changed

5 files changed

+27
-17
lines changed

.github/workflows/jquery-migrate.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: jQuery Migrate
22

33
on:
4-
pull_request:
54
push:
6-
branches:
7-
- main
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
88

99
env:
10-
NODE_VERSION: 22.x
10+
NODE_VERSION: 24.x
1111

1212
jobs:
1313
build-and-test:

.github/workflows/jquery-mousewheel.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: jQuery Mousewheel
22

33
on:
4-
pull_request:
54
push:
6-
branches:
7-
- main
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
88

99
env:
10-
NODE_VERSION: 22.x
10+
NODE_VERSION: 24.x
1111

1212
jobs:
1313
build-and-test:

.github/workflows/jquery-ui.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: jQuery UI
22

33
on:
4-
pull_request:
54
push:
6-
branches:
7-
- main
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
88

99
env:
10-
NODE_VERSION: 22.x
10+
NODE_VERSION: 24.x
1111

1212
jobs:
1313
build-and-test:

.github/workflows/jquery.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: jQuery
22

33
on:
4-
pull_request:
54
push:
6-
branches:
7-
- main
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
88

99
env:
10-
NODE_VERSION: 22.x
10+
NODE_VERSION: 24.x
1111

1212
jobs:
1313
build-and-test:

.github/workflows/test.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,25 @@ on:
66
pull_request:
77
branches: [ "main" ]
88

9+
env:
10+
NODE_VERSION: 24.x
11+
912
jobs:
1013
test:
1114
runs-on: ubuntu-latest
1215
steps:
1316
- name: Checkout
1417
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1518

19+
- name: Use Node.js ${{ env.NODE_VERSION }}
20+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
21+
with:
22+
node-version: ${{ env.NODE_VERSION }}
23+
cache: npm
24+
cache-dependency-path: '**/package-lock.json'
25+
1626
- name: Install dependencies
17-
run: npm install
27+
run: npm ci
1828

1929
- name: Run tests
2030
run: npm test

0 commit comments

Comments
 (0)