Skip to content

feat(ci): add test gating #91

feat(ci): add test gating

feat(ci): add test gating #91

Workflow file for this run

name: PR
on:
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: write
pull-requests: write
jobs:
test-robot-unlabel:
if: github.event.action == 'synchronize'
name: Job
uses: ./.github/workflows/test-robot-unlabel.yml
with:
label-test-robot-done: test-robot-done
label-test-robot-needed: test-robot-needed
build:
needs: test-robot-unlabel
if: >
always() &&
needs.test-robot-unlabel.result != 'failure' &&
needs.test-robot-unlabel.result != 'cancelled'
name: Job
uses: ./.github/workflows/build.yml
test-robot-check:
needs: build
name: Job
uses: ./.github/workflows/test-robot-check.yml
with:
label-test-robot-done: test-robot-done
label-test-robot-needed: test-robot-needed
allchecks:
needs: test-robot-check
runs-on: ubuntu-latest
name: Job
steps:
- uses: wechuli/allcheckspassed@v2
with:
poll: false
delay: 0
retries: 0