Skip to content

Commit 3c81be4

Browse files
authored
Merge pull request #2059 from cjihrig/ci-updates
ci: update action versions, test node 23, unpin node 20
2 parents 1144511 + f7c6633 commit 3c81be4

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
name: Kubernetes Javascript Client - Validation
22

33
on:
4-
push:
5-
branches: [ master, release-1.x ]
6-
pull_request:
7-
branches: [ master, release-1.x ]
4+
push:
5+
branches: [master, release-1.x]
6+
pull_request:
7+
branches: [master, release-1.x]
88

99
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
# Remove specific version from 20 when https://github.com/tschaub/mock-fs/issues/380 is fixed
15-
node: [ '22', '20.7.0', '18' ]
16-
name: Node ${{ matrix.node }} validation
17-
steps:
18-
- uses: actions/checkout@v2
19-
- uses: actions/setup-node@v2
20-
with:
21-
node-version: ${{ matrix.node }}
22-
# Pre-check to validate that versions match between package.json
23-
# and package-lock.json. Needs to run before npm install
24-
- run: node version-check.js
25-
- run: npm ci
26-
- run: npm test
27-
- run: npm run lint
28-
- run: npm audit --audit-level=critical
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node: ['23', '22', '20', '18']
15+
name: Node ${{ matrix.node }} validation
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node }}
21+
# Pre-check to validate that versions match between package.json
22+
# and package-lock.json. Needs to run before npm install
23+
- run: node version-check.js
24+
- run: npm ci
25+
- run: npm test
26+
- run: npm run lint
27+
- run: npm audit --audit-level=critical

0 commit comments

Comments
 (0)