Merge pull request #1853 from cryptpad/test-workflow

Test workflow
This commit is contained in:
yflory 2025-06-17 15:10:06 +02:00 committed by GitHub
commit 18e46bdba9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

24
.github/workflows/test-trigger.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Trigger E2E tests
on:
push:
branches: [ staging ]
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger E2E test run - local and remote
run: |
repo_owner="cryptpad"
repo_name="e2e-test-suite"
event_type="trigger-e2e-tests"
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.TEST_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/cryptpad/e2e-test-suite/dispatches \
-d "{\"event_type\": \"$event_type\", \"client_payload\": {\"service\": \"$service\", \"version\": \"$version\", \"unit\": false, \"integration\": true}}"