CI / build (push) Successful in 16s
Gitea rejects an unparsable workflow without running anything, which for release.yml only surfaces when a tag is pushed. Parsing them all in CI catches it on master first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
# One runner serves all three repos, so a queue is a real cost: superseding
|
|
# pushes shouldn't each wait for a full build. Releases deliberately aren't
|
|
# covered — cancelling a publish halfway is worse than running it twice.
|
|
concurrency:
|
|
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: rocky-10
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@v4
|
|
|
|
# Gitea rejects a workflow file it can't parse without running
|
|
# anything, which for release.yml only shows up when a tag is pushed.
|
|
# Parsing them all here catches that on master, before tagging.
|
|
- name: Check workflow files parse
|
|
run: |
|
|
python3 - <<'PY'
|
|
import glob, yaml
|
|
for f in sorted(glob.glob(".gitea/workflows/*.yml")):
|
|
yaml.safe_load(open(f))
|
|
print("ok", f)
|
|
PY
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Type check
|
|
run: npm run check
|
|
|
|
- name: Build
|
|
run: npm run build
|