mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-09-30 21:03:11 +00:00
The workflow-templates catalog offered starter workflows for only 7 of the 12 reusable workflows in .github/workflows, so ci-python-app, ci-typescript-frontend, ci-static, ci-dotnet and cd-mobile-ios were invisible in the org's Actions > New workflow UI and had to be wired by hand. Add a template + properties.json pair for each. Each caller CI job is keyed `ci` so the check context resolves to the `ci / ci` required by the org ruleset, and every reusable ref is pinned to the same 40-char SHA the existing templates use. node-version: "24" is passed on the three reusables that declare the input (ci-typescript-frontend, ci-static, cd-mobile-ios); ci-python-app and ci-dotnet do not declare it, so it is omitted there.
18 lines
820 B
YAML
18 lines
820 B
YAML
name: CI (Static Site)
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
ci:
|
|
# Job id MUST stay `ci`: the reusable's job is also `ci`, so the check
|
|
# context resolves to the required `ci / ci`.
|
|
uses: Sea-Haven-Industries/.github/.github/workflows/ci-static.yaml@555d07c3a240689a81668026787eba089df4c975 # main
|
|
with:
|
|
# Pinned explicitly (handbook): local dev is Node 24 / npm 11, which
|
|
# generates lockfileVersion 3. Being explicit avoids lockfile drift.
|
|
node-version: "24"
|
|
# Defaults to source mode — the checks run against the repo root. For a
|
|
# templated site (Eleventy, Astro), add `build-command` plus `check-dir`
|
|
# so the checks validate the BUILT output that actually ships; otherwise
|
|
# they pass vacuously against source templates that contain no HTML.
|