Skip to content

feat: 1379 create opening frontend #7792

feat: 1379 create opening frontend

feat: 1379 create opening frontend #7792

Workflow file for this run

name: PR Validate
on:
pull_request:
types: [edited, opened, synchronize, reopened, ready_for_review]
concurrency:
group: ${{ github.workflow }}-edit-${{ github.event.number }}
cancel-in-progress: true
permissions: {}
jobs:
init:
name: Initialize
concurrency:
group: fam-routes-global
cancel-in-progress: false
outputs:
hybrid_route_number: ${{ steps.allocate.outputs.route_hybrid }}
postgres_route_number: ${{ steps.allocate.outputs.route_postgres }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Allocate FAM routes
id: allocate
uses: ./.github/actions/allocate-fam-routes
with:
oc_token: ${{ secrets.OC_TOKEN }}
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_server: ${{ vars.OC_SERVER }}
pr_number: ${{ github.event.number }}
validate:
name: Validate PR
needs: [init]
uses: bcgov/quickstart-openshift-helpers/.github/workflows/.pr-validate.yml@a11ad3d1b9288fb40757c4314a62eb86ff227931 # v1.2.1
permissions:
pull-requests: write
with:
markdown_links: |
- [Hybrid Backend](https://${{ github.event.repository.name }}-${{ github.event.number }}-hybrid-backend.apps.silver.devops.gov.bc.ca/actuator/health)
- [Hybrid Frontend](https://${{ github.event.repository.name }}-${{ needs.init.outputs.hybrid_route_number }}-frontend.apps.silver.devops.gov.bc.ca)
- [Postgres Backend](https://${{ github.event.repository.name }}-${{ github.event.number }}-postgres-backend.apps.silver.devops.gov.bc.ca/actuator/health)
- [Postgres Frontend](https://${{ github.event.repository.name }}-${{ needs.init.outputs.postgres_route_number }}-frontend.apps.silver.devops.gov.bc.ca)
# ==========================================================================
# WARNING: This job acts as the required merge gate for this workflow.
# If you add a new job to this workflow, you MUST add its ID to the 'needs'
# array below, otherwise its failure or cancellation will not block the PR!
# ==========================================================================
results:
name: Validate Results
needs: [init, validate]
if: always()
runs-on: ubuntu-24.04
timeout-minutes: 1
steps:
- name: Log Job Results Context
run: |
echo "=== Upstream Job Statuses ==="
echo '${{ toJson(needs) }}'
- name: Evaluate Overall Status
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: |
echo "❌ Critical Check Failure: At least one required job has failed or was cancelled."
exit 1
- name: Success Message
run: echo "✅ All critical checks passed or were intentionally skipped!"