-
Notifications
You must be signed in to change notification settings - Fork 23
172 lines (165 loc) 路 4.64 KB
/
Copy pathcontrol.yml
File metadata and controls
172 lines (165 loc) 路 4.64 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
name: Control
on:
workflow_dispatch:
push:
pull_request:
permissions:
contents: read
packages: write
actions: write
jobs:
warm-cache:
name: Warm Nx Cache
uses: ./.github/workflows/reusable-control.yml
secrets: inherit
with:
command: warm-cache
cache_prefix: control-ci
runs-on: ubuntu-latest
unit:
name: Unit (${{ matrix.service }})
needs: warm-cache
uses: ./.github/workflows/reusable-control.yml
secrets: inherit
strategy:
fail-fast: false
matrix:
service:
- ares
- cargo
- code-bucket
- deflector
- forge
- function-bay
- origin
- shuttle
- signal
- slates-hub
- slates-registry
- subspace-controller
- subspace-public
- subspace-worker
- synthesis
- voyager
- relay
- object-storage
with:
command: ci
mode: unit
filter: ${{ matrix.service }}
cache_prefix: control-ci
runs-on: ubuntu-latest
e2e:
name: E2E (${{ matrix.service }})
needs: build-images
uses: ./.github/workflows/reusable-control.yml
secrets: inherit
strategy:
fail-fast: false
matrix:
service:
- ares
- cargo
- code-bucket
- deflector
- forge
- function-bay
- origin
- shuttle
- signal
- slates-hub
- slates-registry
- subspace-controller
- subspace-public
- subspace-worker
- synthesis
- voyager
- relay
- object-storage
with:
command: ci
mode: e2e
filter: ${{ matrix.service }}
cache_prefix: control-ci
project_prefix: ${{ matrix.service }}-ci
runs-on: ubuntu-latest
download_image_artifacts: true
image_artifact_pattern: control-image-*
prebuilt_images: true
prebuilt_image_prefix: control
checkout_submodules: ${{ matrix.service == 'subspace-controller' }}
core-api-e2e:
name: E2E (app-api)
needs: build-images
uses: ./.github/workflows/reusable-control.yml
secrets: inherit
with:
command: ci
mode: e2e
filter: app-api
modules: all
cache_prefix: control-ci
project_prefix: app-api-ci
runs-on: ubuntu-latest
download_image_artifacts: true
image_artifact_pattern: control-image-*
prebuilt_images: true
prebuilt_image_prefix: control
build-images:
name: Build Image (${{ matrix.service }})
needs: unit
uses: ./.github/workflows/reusable-control.yml
secrets: inherit
strategy:
fail-fast: false
matrix:
include:
- service: ares
image: ghcr.io/metorial/mte-ares
- service: cargo
image: ghcr.io/metorial/mte-cargo
- service: code-bucket
image: ghcr.io/metorial/mte-code-bucket
- service: deflector
image: ghcr.io/metorial/mte-deflector
- service: forge
image: ghcr.io/metorial/mte-forge
- service: function-bay
image: ghcr.io/metorial/mte-function-bay
- service: origin
image: ghcr.io/metorial/mte-origin
- service: shuttle
image: ghcr.io/metorial/mte-shuttle
- service: signal
image: ghcr.io/metorial/mte-signal
- service: slates-hub
image: ghcr.io/metorial/mte-slates-hub
- service: slates-registry
image: ghcr.io/metorial/mte-slates-registry
- service: subspace-controller
image: ghcr.io/metorial/mte-subspace-controller
- service: subspace-public
image: ghcr.io/metorial/mte-subspace-public
- service: subspace-worker
image: ghcr.io/metorial/mte-subspace-worker
- service: synthesis
image: ghcr.io/metorial/mte-synthesis
- service: voyager
image: ghcr.io/metorial/mte-voyager
- service: relay
image: ghcr.io/metorial/mte-relay
- service: object-storage
image: ghcr.io/metorial/mte-object-storage
- service: app-api
image: ghcr.io/metorial/metorial-api
with:
command: build
filter: ${{ matrix.service }}
cache_prefix: control-ci
runs-on: ubuntu-latest
image: ${{ matrix.image }}
push_image: false
build_test_runner: true
save_image_artifact: true
image_artifact_name: control-image-${{ matrix.service }}
checkout_submodules: ${{ matrix.service == 'subspace-controller' }}