-
Notifications
You must be signed in to change notification settings - Fork 564
37 lines (35 loc) · 1.4 KB
/
test.yml
File metadata and controls
37 lines (35 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Kubernetes Javascript Client - Validation
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['25', '24', '23', '22', '20', '18']
name: Node ${{ matrix.node }} validation
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/setup-node@v6
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
# Node 25 has a known incompatibility: extension-less files in "type: module"
# packages are treated as ESM, causing c8's require('yargs/yargs') to fail.
# Fall back to plain unit tests without coverage on Node 25 until upstream fixes this.
- if: matrix.node != '25'
run: npm test
- if: matrix.node == '25'
run: npm run test-no-coverage
- run: npm run lint
- run: npm audit --audit-level=critical
- run: npm run build-with-tests && npm run test-transpiled
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
- run: npm run integration-test