seahaven-ap/.github/workflows/ci.yaml
Adam Moussa c26bb2a4da
ci(workflows): call org frontend CI on the merge queue (#67)
The sequential ci / ci caller cannot emit ci-complete. Build shared
before unit tests so the parallel frontend job can import the workspace package.
2026-09-26 21:00:55 +00:00

48 lines
1.5 KiB
YAML

name: CI
# Parallel org callers. ci-complete is the check name the CI complete ruleset
# requires. merge_group stays so the merge queue runs these portions.
# There is no terraform/ tree on main, so this caller has no terraform job.
on:
pull_request:
branches: [main, hotfix/**, release/**]
merge_group:
push:
branches: [hotfix/**, release/**]
permissions:
contents: read
jobs:
autofix:
if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork
uses: Sea-Haven-Industries/.github/.github/workflows/ci-autofix.yaml@0a1010e63248c9ca9f042c870eb2c579ba6b9455 # v1.0.19
permissions:
contents: write
secrets: inherit
with:
presets: prettier
frontend:
needs: autofix
if: always() && !cancelled() && (needs.autofix.result == 'skipped' || needs.autofix.outputs.committed != 'true')
uses: Sea-Haven-Industries/.github/.github/workflows/ci-frontend.yaml@0a1010e63248c9ca9f042c870eb2c579ba6b9455 # v1.0.19
with:
node-version: "24"
unit-shards: 1
run-e2e: true
ci-complete:
name: ci-complete
needs: [autofix, frontend]
if: always() && !cancelled() && (needs.autofix.result == 'skipped' || needs.autofix.outputs.committed != 'true')
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Require portions
env:
FRONTEND: ${{ needs.frontend.result }}
run: |
set -euo pipefail
test "${FRONTEND}" = success