Skip to content

ci: update action versions, test node 23, unpin node 20 #2059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 22 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
name: Kubernetes Javascript Client - Validation

on:
push:
branches: [ master, release-1.x ]
pull_request:
branches: [ master, release-1.x ]
push:
branches: [master, release-1.x]
pull_request:
branches: [master, release-1.x]

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