Install a real Node 20 in the backend CI job, not Debian bullseye's default
CI / backend (push) Successful in 1m28s
CI / frontend (push) Successful in 56s

Node got installed (previous fix worked) but actions/checkout@v4's bundled
JS uses modern syntax (class static blocks) requiring Node >=16.11.
hseeberger/scala-sbt is Debian bullseye-based, whose default apt "nodejs"
package is a stale Node 12 -- SyntaxError: Unexpected token '{' at "static
{". HOP's own image is bookworm-based (newer default), which is why they
never hit this. Use NodeSource's setup script to get an actual current Node
20 regardless of the distro's packaged version.
This commit is contained in:
b0txec
2026-08-24 22:11:47 +03:00
parent 7e1b492a0c
commit 2c78ae8286
+3 -1
View File
@@ -18,7 +18,9 @@ jobs:
- name: Install checkout runtime - name: Install checkout runtime
run: | run: |
apt-get update apt-get update
apt-get install --yes --no-install-recommends git nodejs apt-get install --yes --no-install-recommends curl ca-certificates git
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install --yes --no-install-recommends nodejs
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: sbt test - name: sbt test