Files
WeatherTool/.gitea/workflows/ci.yml
T
b0txec 7e1b492a0c
CI / backend (push) Failing after 11s
CI / frontend (push) Successful in 53s
Install Node in the backend CI job before checkout
The frontend job succeeded after the runner HOME fix, but backend failed at
a different point: actions/checkout is a JavaScript action and needs a Node
runtime inside the job container to run it at all (exec: "node": executable
file not found in $PATH), and hseeberger/scala-sbt has no Node installed.
Same lesson HOP's own CI setup already documented ("JavaScript actions need
Node in the job image") -- mirroring their fix: install git+nodejs via apt
before the checkout step.
2026-08-24 22:04:06 +03:00

46 lines
981 B
YAML

name: CI
on:
push:
branches:
- codex/staging-baseline
pull_request:
branches:
- codex/staging-baseline
workflow_dispatch:
jobs:
backend:
runs-on: docker
container:
image: hseeberger/scala-sbt:17.0.2_1.6.2_2.13.8
steps:
- name: Install checkout runtime
run: |
apt-get update
apt-get install --yes --no-install-recommends git nodejs
rm -rf /var/lib/apt/lists/*
- uses: actions/checkout@v4
- name: sbt test
run: sbt -batch test
frontend:
runs-on: docker
container:
image: node:20-bookworm
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@v4
- name: npm ci
run: npm ci
- name: typecheck
run: npm run typecheck
- name: build
run: npm run build
- name: audit (full)
run: npm audit
- name: audit (production only)
run: npm audit --omit=dev