-
Notifications
You must be signed in to change notification settings - Fork 111
79 lines (68 loc) · 2.08 KB
/
ci.yml
File metadata and controls
79 lines (68 loc) · 2.08 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Merge Queue Tasks
on:
merge_group:
workflow_dispatch:
jobs:
invoke-build-rust:
name: Build Rust
uses: ./.github/workflows/build-rust.yml
secrets: inherit
invoke-build-java:
name: Build Java
uses: ./.github/workflows/build-java.yml
secrets: inherit
invoke-build-docs:
name: Build Docs
uses: ./.github/workflows/build-docs.yml
secrets: inherit
invoke-tests-unit:
name: Unit Tests
needs: [invoke-build-rust, invoke-build-java]
uses: ./.github/workflows/test-unit.yml
secrets: inherit
invoke-tests-adapter:
name: Adapter Tests
needs: [invoke-build-rust]
uses: ./.github/workflows/test-adapters.yml
secrets: inherit
invoke-build-docker:
name: Build Docker
needs: [invoke-build-rust, invoke-build-java]
uses: ./.github/workflows/build-docker.yml
secrets: inherit
invoke-tests-integration-platform:
name: Integration Tests
needs: [invoke-build-docker]
uses: ./.github/workflows/test-integration-platform.yml
secrets: inherit
invoke-tests-integration-runtime:
name: Integration Tests
needs: [invoke-build-java]
uses: ./.github/workflows/test-integration-runtime.yml
secrets: inherit
invoke-tests-java:
name: Java Tests
needs: [invoke-build-java]
uses: ./.github/workflows/test-java.yml
secrets: inherit
# This job needs to be called main (the same as the ci-pre-mergequeue.yml workflow)
# because of how merge queues work: https://stackoverflow.com/a/78030618
# and https://github.com/orgs/community/discussions/103114
main:
if: always()
runs-on: ubuntu-latest-amd64
needs:
- invoke-build-rust
- invoke-build-java
- invoke-build-docs
- invoke-tests-unit
- invoke-tests-adapter
- invoke-build-docker
- invoke-tests-integration-platform
- invoke-tests-integration-runtime
- invoke-tests-java
steps:
- name: Finalize Workflow
run: echo "All tasks completed!"
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1