Run npm checks with the pinned Node path
This commit is contained in:
parent
8e8e7ba8d6
commit
1ad26a0acd
3 changed files with 6 additions and 1 deletions
|
|
@ -101,6 +101,10 @@ sudo install -o root -g root -m 0755 \
|
|||
sudo /usr/local/bin/deploy-sokko-g --help
|
||||
```
|
||||
|
||||
Cette installation doit être répétée après toute modification de
|
||||
`scripts/deploy-sokko-g.sh`. Le workflow appelle volontairement la copie
|
||||
administrée sous `/usr/local/bin` et ne la remplace pas automatiquement.
|
||||
|
||||
La commande `--help` doit afficher l'usage et quitter sans modifier le site.
|
||||
L'unité inspectée le 23 octobre 2026 utilise encore Node 26.3.0. Installer la
|
||||
version alignée [`ops/systemd/sokko-g.service`](../ops/systemd/sokko-g.service),
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ command -v flock >/dev/null
|
|||
exit 1
|
||||
}
|
||||
[[ "$($NODE_BIN --version)" == "v24.11.1" ]]
|
||||
[[ "$($NPM_BIN --version)" == "11.17.0" ]]
|
||||
[[ "$(env PATH="$NODE_HOME/bin:/usr/bin:/bin" "$NPM_BIN" --version)" == "11.17.0" ]]
|
||||
systemctl show --property=ExecStart --value "$SERVICE_NAME" | grep -Fq "$NPM_BIN"
|
||||
|
||||
exec 9>"$LOCK_FILE"
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ test("the versioned remote script builds and activates only the requested commit
|
|||
assert.match(script, /flock --wait 900/);
|
||||
assert.match(script, /merge-base --is-ancestor/);
|
||||
assert.match(script, /worktree add --detach/);
|
||||
assert.match(script, /env PATH="\$NODE_HOME\/bin:\/usr\/bin:\/bin" "\$NPM_BIN" --version/);
|
||||
assert.match(script, /"\$NPM_BIN" --prefix "\$worktree" ci/);
|
||||
assert.match(script, /"\$NPM_BIN" --prefix "\$worktree" run build/);
|
||||
assert.match(script, /checkout --detach "\$requested_commit"/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue