diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 100fff7d..f645d5f9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,16 +1,18 @@ -name: CI +name: Frontend checks on: pull_request: branches: [main, dev] push: branches: [main, dev] + workflow_dispatch: {} permissions: contents: read jobs: - ci: + build-and-test: + name: Build and test # Org reusable workflow (Node 24): format check, lint, build, unit tests. uses: Sea-Haven-Industries/.github/.github/workflows/ci-typescript-frontend.yaml@main with: @@ -28,9 +30,10 @@ jobs: # GOVERNANCE_BASE points the changed-file gate at the right diff: # PR -> the PR target branch (origin/) # push-> the previous commit on the branch (github.event.before) + # manual -> dev, for exact-head recovery runs runs-on: ubuntu-latest env: - GOVERNANCE_BASE: ${{ github.event_name == 'pull_request' && format('origin/{0}', github.base_ref) || github.event.before }} + GOVERNANCE_BASE: ${{ github.event_name == 'pull_request' && format('origin/{0}', github.base_ref) || github.event_name == 'push' && github.event.before || 'origin/dev' }} steps: - uses: actions/checkout@v4 with: @@ -43,6 +46,7 @@ jobs: - run: npm run verify visual-regression: + name: Visual regression runs-on: ubuntu-latest container: mcr.microsoft.com/playwright:v1.61.1-noble steps: