mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-09-30 04:43:12 +00:00
Callers can run prettier, eslint, ruff, and terraform without passing npm run lint -- --fix, which chains non-fixers in several apps.
52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
name: CI
|
|
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@REPLACE-ME # vX.Y.Z
|
|
permissions:
|
|
contents: write
|
|
secrets: inherit
|
|
with:
|
|
presets: prettier,terraform
|
|
|
|
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@REPLACE-ME # vX.Y.Z
|
|
with:
|
|
node-version: "24"
|
|
unit-shards: 4
|
|
run-e2e: true
|
|
|
|
terraform:
|
|
needs: autofix
|
|
if: always() && !cancelled() && (needs.autofix.result == 'skipped' || needs.autofix.outputs.committed != 'true')
|
|
uses: Sea-Haven-Industries/.github/.github/workflows/ci-terraform.yaml@REPLACE-ME # vX.Y.Z
|
|
with:
|
|
terraform-version: "1.16.0"
|
|
|
|
ci-complete:
|
|
name: ci-complete
|
|
needs: [autofix, frontend, terraform]
|
|
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 }}
|
|
TERRAFORM: ${{ needs.terraform.result }}
|
|
run: |
|
|
set -euo pipefail
|
|
test "${FRONTEND}" = success
|
|
test "${TERRAFORM}" = success
|