mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
Added .yml file to trigger test runs in e2e test repo
This commit is contained in:
parent
12b33378eb
commit
41c5518d98
25
.github/workflows/test-trigger.yml
vendored
Normal file
25
.github/workflows/test-trigger.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
name: Trigger E2E tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ staging ]
|
||||
|
||||
jobs:
|
||||
trigger:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Trigger E2E test run - local and remote
|
||||
run: |
|
||||
# Set the required variables
|
||||
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}}"
|
||||
Loading…
Reference in New Issue
Block a user