forked from cryptpad/cryptpad
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 1.21 KB
/
test-trigger.yml
File metadata and controls
38 lines (30 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# SPDX-FileCopyrightText: 2025 2023 XWiki CryptPad Team <contact@cryptpad.org> and contributors
#
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Trigger E2E tests
on:
push:
branches: [ staging, 2025.12-rc, 2025.12-test ]
jobs:
trigger-tests:
runs-on: ubuntu-latest
steps:
- name: Trigger E2E test run (local)
run: |
branch="${GITHUB_REF_NAME}"
if [ "$branch" = "staging" ]; then
event_type="trigger-e2e-tests-staging"
elif [ "$branch" = "2025.12-rc" ]; then
event_type="trigger-e2e-tests-rc"
elif [ "$branch" = "2025.12-test" ]; then
event_type="trigger-e2e-tests-test"
fi
repo_owner="cryptpad"
repo_name="e2e-test-suite"
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}}"