feat(public): add flow for criminal record certificates (#55) #117
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| env: | |
| PUBLIC_MATOMO_URL: https://matomo.example.com | |
| PUBLIC_MATOMO_ENABLED: 'false' | |
| PUBLIC_MATOMO_DIMENSION_LOCALE: '1' | |
| PUBLIC_MATOMO_DIMENSION_ENVIRONMENT: '2' | |
| PUBLIC_MATOMO_DIMENSION_ROUTE_GROUP: '3' | |
| PUBLIC_MATOMO_DIMENSION_STEP_SLUG: '4' | |
| PUBLIC_MATOMO_DIMENSION_RESULT_STATE: '5' | |
| PUBLIC_MATOMO_DIMENSION_RECOMMENDED_ROUTE: '6' | |
| PUBLIC_MATOMO_SITE_ID_PRODUCTION: '1' | |
| PUBLIC_MATOMO_SITE_ID_TEST: '2' | |
| PUBLIC_MATOMO_LOCAL_ANALYTICS: 'off' | |
| PUBLIC_MATOMO_PRODUCTION_HOSTS: primerpaso.org,www.primerpaso.org | |
| PUBLIC_CERTIFICATE_HANDOFF_ENABLED: 'false' | |
| PRIVATE_DATABASE_URL: '' | |
| PUBLIC_ORG_PORTAL_URL: https://org.primerpaso.org | |
| PRIVATE_ORG_PORTAL_ENVIRONMENT: test | |
| PRIVATE_ORG_PORTAL_DEV_LOGIN_ENABLED: 'false' | |
| PRIVATE_DATABASE_PROVIDER: supabase | |
| PRIVATE_ORG_PORTAL_DEV_MEMBER_EMAIL: volunteer-signer@example.invalid | |
| PUBLIC_SUPABASE_URL: https://example.supabase.co | |
| PUBLIC_SUPABASE_PUBLISHABLE_KEY: sb_publishable_test_key | |
| PRIVATE_ORG_PORTAL_CUSTOM_SMTP_CONFIGURED: 'true' | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Set up mise | |
| uses: jdx/mise-action@v4 | |
| with: | |
| cache: true | |
| install: true | |
| - name: Install dependencies | |
| run: mise x -- pnpm install --frozen-lockfile | |
| - name: Check analytics environment contract | |
| run: mise run analytics:env:check:strict | |
| - name: Check organisation portal environment contract | |
| run: mise run org:env:check:strict | |
| - name: Check database runtime environment contract | |
| run: mise x -- node scripts/check-db-runtime.mjs --strict | |
| - name: Check formatting and lint | |
| run: mise x -- pnpm run check | |
| - name: Typecheck | |
| run: mise x -- pnpm run typecheck | |
| - name: Test | |
| run: mise x -- pnpm test |