forked from heavy-duty/ceremony
The seam that lets box/rig/incubator (a VERSION file) and cast (package.json + lockfile sync) share every other ceremony component unchanged. Sourced, pure (no git), fail-loud on every unreadable state. Carries cast's pkg_version discipline (node's parser, never regex) and its lockfile-only bump incantation; refuses pre-release arithmetic (-dev/-rc1) per box's prefix-confusion lore. The npm-backed write test skips locally without npm but CI sets CEREMONY_REQUIRE_NPM so the skip is a failure there — the case can never quietly stop running. Closes #3 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
36 lines
1 KiB
YAML
36 lines
1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Shellcheck
|
|
run: bash .github/scripts/shellcheck-all.sh
|
|
- name: Install actionlint
|
|
env:
|
|
ACTIONLINT_VERSION: 1.7.12
|
|
run: |
|
|
curl -fsSLo actionlint.tar.gz \
|
|
"https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
|
|
tar -xzf actionlint.tar.gz actionlint
|
|
sudo install actionlint /usr/local/bin/actionlint
|
|
- name: Actionlint
|
|
run: bash .github/scripts/actionlint-all.sh
|
|
- name: Tests
|
|
env:
|
|
# The npm-backed version_write case may skip locally when npm is
|
|
# absent; in CI a skip must be a failure, or the case could
|
|
# quietly stop running (issue #3's test contract).
|
|
CEREMONY_REQUIRE_NPM: 1
|
|
run: bash test/run.sh
|