fix(ci): make bootstrap deterministic and align CI installs
- Change package.json bootstrap to use 'npm ci --prefix packages/hooklib' - Change k8s-tests workflow to use 'npm ci' instead of 'npm install' - All three packages (hooklib, k8s, docker) now use deterministic installs - All three CI jobs (format-and-lint, docker-tests, k8s-tests) now use npm ci
This commit is contained in:
@@ -17,6 +17,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 24
|
node-version: 24
|
||||||
cache: npm
|
cache: npm
|
||||||
|
- run: node --version && npm --version
|
||||||
|
name: Log Node and npm versions
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
- run: npm run bootstrap
|
- run: npm run bootstrap
|
||||||
@@ -40,6 +42,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 24
|
node-version: 24
|
||||||
cache: npm
|
cache: npm
|
||||||
|
- run: node --version && npm --version
|
||||||
|
name: Log Node and npm versions
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
- run: npm run bootstrap
|
- run: npm run bootstrap
|
||||||
@@ -64,7 +68,9 @@ jobs:
|
|||||||
- uses: helm/[email protected]
|
- uses: helm/[email protected]
|
||||||
with:
|
with:
|
||||||
config: packages/k8s/tests/test-kind.yaml
|
config: packages/k8s/tests/test-kind.yaml
|
||||||
- run: npm install
|
- run: node --version && npm --version
|
||||||
|
name: Log Node and npm versions
|
||||||
|
- run: npm ci
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
- run: npm run bootstrap
|
- run: npm run bootstrap
|
||||||
name: Bootstrap the packages
|
name: Bootstrap the packages
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run test --prefix packages/docker && npm run test --prefix packages/k8s",
|
"test": "npm run test --prefix packages/docker && npm run test --prefix packages/k8s",
|
||||||
"bootstrap": "npm install --prefix packages/hooklib && npm ci --prefix packages/k8s && npm ci --prefix packages/docker",
|
"bootstrap": "npm ci --prefix packages/hooklib && npm ci --prefix packages/k8s && npm ci --prefix packages/docker",
|
||||||
"format": "prettier --write '**/*.ts'",
|
"format": "prettier --write '**/*.ts'",
|
||||||
"format-check": "prettier --check '**/*.ts'",
|
"format-check": "prettier --check '**/*.ts'",
|
||||||
"lint": "eslint packages/**/*.ts",
|
"lint": "eslint packages/**/*.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user