name: Quality

on:
  push:
  pull_request:
  workflow_dispatch:

jobs:
  full-local-gates:
    runs-on: who-need-help-ci
    steps:
      - name: Check out the repository
        uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
        with:
          persist-credentials: false

      - name: Run isolated quality and security gates
        run: ./scripts/quality.sh

      - name: Run isolated browser end-to-end tests
        run: ./scripts/e2e-run.sh

      - name: Run isolated OAuth, SMTP, and push boundary drill
        run: ./scripts/external-boundaries-run.sh ci-boundaries

      - name: Build, lint, and unit-test the debug Android app
        env:
          WNH_ENV_FILE: .env.example
        run: ./scripts/android-build.sh

      - name: Exercise signed APK and Play AAB release pipeline
        run: ./scripts/android-release-ci.sh
