CI / build (pull_request) Successful in 28s
Astro 7.4.12 requires Node >=22.23.4; the Gitea runner's tool cache had 22.23.1, so astro build refused to start. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
30 lines
872 B
YAML
30 lines
872 B
YAML
name: CI
|
|
|
|
# Build gate. Runs on both forges (path .github is read by Gitea and GitHub).
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version: '22'
|
|
check-latest: true # the runner's cached 22 can lag behind Astro's minimum
|
|
- run: npm ci
|
|
# Only a critical advisory blocks, as in release.yml. The site ships built files, not
|
|
# node_modules; a build-time advisory with no published fix would otherwise block every PR.
|
|
# audit.yml still files an issue for moderate and up, and the full report prints here.
|
|
- run: npm audit --audit-level=critical
|
|
- run: npm audit
|
|
continue-on-error: true
|
|
- run: npm run check
|