-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (38 loc) · 1.32 KB
/
run-end-to-end-tests.yml
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
37
38
name: end-to-end tests
on: [push, workflow_dispatch]
jobs:
dispatch-and-wait:
runs-on: ubuntu-latest
steps:
- run: echo "Dispatching end-to-end tests against $GITHUB_REF_NAME"
- name: "Dispatch workflow"
id: dispatch
uses: mathze/[email protected]
with:
owner: periodo
repo: periodo-tests
ref: master
token: ${{ secrets.WORKFLOW_DISPATCH_TOKEN }}
use-marker-step: true
workflow-name: run-tests-on-branch.yml
payload: |
{ "client_branch": "${{ github.ref_name }}" }
- run: echo 'Workflow log at https://github.com/periodo/periodo-tests/actions/runs/${{ steps.dispatch.outputs.run-id }}'
- name: "Wait for workflow completion"
id: wait
uses: mathze/[email protected]
with:
owner: periodo
repo: periodo-tests
ref: master
token: ${{ secrets.WORKFLOW_DISPATCH_TOKEN }}
run-id: ${{ steps.dispatch.outputs.run-id }}
wait-interval: 30s
- name: "Check workflow conclusion"
run: |
if [[ "success" != "${{ steps.wait.outputs.run-conclusion }}" ]]; then
echo "End-to-end tests failed (conclusion was <${{ steps.wait.outputs.run-conclusion }}>)"
exit 1
else
echo "End-to-end tests succeeded"
fi