Skip to content

feat(ci): add test gating #43

feat(ci): add test gating

feat(ci): add test gating #43

Workflow file for this run

name: PR
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: write
pull-requests: write
jobs:
test-label:
if: github.event.label.name == 'robot-tested'
name: Test Label
runs-on: ubuntu-latest
steps:
- name: Test Label Added
uses: ./.github/actions/test-unlabel
with:
label-robot-tested: robot-tested
test-unlabel:
if: github.event.action == 'synchronize'
name: Test Unlabel
runs-on: ubuntu-latest
steps:
- name: Remove Test Label
uses: ./.github/actions/test-label
with:
label-robot-tested: robot-tested
label-robot-test-needed: needs-robot-testing
build:
needs: test-unlabel
if: always() && github.event.action != 'labeled'
name: Job
uses: ./.github/workflows/build.yaml