Compare commits

..
Author SHA1 Message Date
Nikola Jokic a946a3acf5 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
2026-04-23 18:30:32 +02:00
tfhdddandGitHub 6ecda1d8ea fix: Resolves the issue of inconsistent hash calculations between runner and workflow files. (#316)
CodeQL / Analyze (javascript) (push) Has been cancelled
2026-02-13 22:47:15 +01:00
3 changed files with 9 additions and 3 deletions
+7 -1
View File
@@ -17,6 +17,8 @@ jobs:
with:
node-version: 24
cache: npm
- run: node --version && npm --version
name: Log Node and npm versions
- run: npm ci
name: Install dependencies
- run: npm run bootstrap
@@ -40,6 +42,8 @@ jobs:
with:
node-version: 24
cache: npm
- run: node --version && npm --version
name: Log Node and npm versions
- run: npm ci
name: Install dependencies
- run: npm run bootstrap
@@ -64,7 +68,9 @@ jobs:
- uses: helm/[email protected]
with:
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
- run: npm run bootstrap
name: Bootstrap the packages
+1 -1
View File
@@ -8,7 +8,7 @@
},
"scripts": {
"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-check": "prettier --check '**/*.ts'",
"lint": "eslint packages/**/*.ts",
+1 -1
View File
@@ -301,5 +301,5 @@ export async function sleep(ms: number): Promise<void> {
}
export function listDirAllCommand(dir: string): string {
return `cd ${shlex.quote(dir)} && find . -not -path '*/_runner_hook_responses*' -exec stat -c '%s %n' {} \\;`
return `cd ${shlex.quote(dir)} && find . -type f -not -path '*/_runner_hook_responses*' -exec stat -c '%s %n' {} \\;`
}