Trigger blackbox tests with label (#24517)

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
This commit is contained in:
ian
2025-02-04 18:36:52 +08:00
committed by GitHub
parent 110083e909
commit 52476cef94
3 changed files with 19 additions and 0 deletions

13
.github/workflows/blackbox-pr.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
name: Check
on:
pull_request:
types:
- synchronize
- labeled
jobs:
blackbox-tests:
name: Blackbox Tests
if: contains(github.event.pull_request.labels.*.name, 'Run Blackbox')
uses: ./.github/workflows/blackbox.yml

View File

@@ -11,6 +11,7 @@ on:
- package.json
- pnpm-lock.yaml
- .github/workflows/blackbox.yml
workflow_call:
concurrency:
group: blackbox-${{ github.ref }}

View File

@@ -1,3 +1,8 @@
# Blackbox Tests
See https://docs.directus.io/contributing/tests.html#running-blackbox-tests.
## Run Blackbox Tests in Pull Requests
Full blackbox tests run automatically when changes are merged into `main`. To trigger blackbox tests on a pull request,
add the `Run Blackbox` label.