-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.53 KB
/
integration-tests.yml
File metadata and controls
55 lines (48 loc) · 1.53 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Integration Tests
on:
pull_request:
workflow_dispatch:
# Queue workflow runs instead of canceling them
concurrency:
group: integration-tests-${{ github.ref }}
cancel-in-progress: false
jobs:
test-group-1:
uses: ./.github/workflows/integration-tests-group1.yml
secrets: inherit
test-group-2:
uses: ./.github/workflows/integration-tests-group2.yml
secrets: inherit
test-group-3:
uses: ./.github/workflows/integration-tests-group3.yml
secrets: inherit
# Run group 4 after groups 1 and 2 complete (multi-user tests)
test-group-4:
needs: [test-group-1, test-group-2]
uses: ./.github/workflows/integration-tests-group4.yml
secrets: inherit
# Final job to check all tests passed
integration-tests-complete:
needs: [test-group-1, test-group-2, test-group-3, test-group-4]
runs-on: ubuntu-latest
if: always()
steps:
- name: Check test results
run: |
if [[ "${{ needs.test-group-1.result }}" != "success" ]]; then
echo "Test Group 1 failed"
exit 1
fi
if [[ "${{ needs.test-group-2.result }}" != "success" ]]; then
echo "Test Group 2 failed"
exit 1
fi
if [[ "${{ needs.test-group-3.result }}" != "success" ]]; then
echo "Test Group 3 failed"
exit 1
fi
if [[ "${{ needs.test-group-4.result }}" != "success" ]]; then
echo "Test Group 4 failed"
exit 1
fi
echo "All integration tests passed!"