Skip to content

Xray component resolution #79

Xray component resolution

Xray component resolution #79

Workflow file for this run

name: Build Gate
on:
pull_request_target:
types: [opened, synchronize, reopened]
branches: [master]
push:
branches: [master]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
permissions:
pull-requests: write
contents: read
jobs:
gate:
runs-on: ubuntu-latest
environment: ${{ github.event_name == 'pull_request_target' && 'build-gate' || '' }}
steps:
- run: echo "Approved — releasing frogbot and test suites."
frogbot:
needs: gate
uses: ./.github/workflows/frogbot-scan-pull-request.yml
secrets: inherit
tests:
needs: gate
uses: ./.github/workflows/tests.yml
secrets: inherit
# Single, stable required status check. Point branch protection at
# "Build Gate / build-gate-success" instead of the matrix-expanded suite checks.
build-gate-success:
name: build-gate-success
if: always()
needs:
- gate
- frogbot
- tests
runs-on: ubuntu-latest
steps:
- name: Verify no suite failed or was cancelled
run: |
if ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}; then
echo "::error::One or more suites failed or were cancelled."
exit 1
fi
echo "All suites succeeded (skipped suites are allowed)."