@@ -5,14 +5,25 @@ name: Validate everything
5
5
push :
6
6
branches :
7
7
- master
8
- pull_request :
8
+ pull_request_target :
9
+ types :
10
+ - labeled
9
11
branches :
10
12
- master
13
+ - hack
11
14
env :
12
15
DOCKER_HUB_USERNAME : shepmaster
13
16
GH_CONTAINER_REGISTRY_USERNAME : shepmaster
14
17
AWS_ACCESS_KEY_ID : AKIAWESVHZ3J6SV43YWE
15
18
jobs :
19
+ debug :
20
+ runs-on : ubuntu-latest
21
+ if : ' contains(github.event.pull_request.labels.*.name, '' CI: approved'' )'
22
+ steps :
23
+ - run : echo '${{ secrets.AWS_SECRET_ACCESS_KEY }}' | wc
24
+ - run : echo '${{ secrets.DOCKER_HUB_TOKEN }}' | wc
25
+ - run : echo '${{ secrets.GH_CONTAINER_REGISTRY_TOKEN }}' | wc
26
+ - run : echo '${{ secrets.PLAYGROUND_GITHUB_TOKEN }}' | wc
16
27
build_compiler_containers :
17
28
name : Build ${{ matrix.channel }} compiler container
18
29
runs-on : ubuntu-latest
@@ -22,11 +33,14 @@ jobs:
22
33
- stable
23
34
- beta
24
35
- nightly
36
+ if : ' contains(github.event.pull_request.labels.*.name, '' CI: approved'' )'
25
37
env :
26
38
IMAGE_NAME : ghcr.io/integer32llc/rust-playground-ci-rust-${{ matrix.channel }}
27
39
steps :
28
40
- name : Checkout code
29
41
uses : actions/checkout@v2
42
+ with :
43
+ ref : " ${{ github.event.pull_request.head.sha }}"
30
44
- name : Set up Docker Buildx
31
45
uses : docker/setup-buildx-action@v1
32
46
with :
@@ -124,11 +138,14 @@ jobs:
124
138
- clippy
125
139
- miri
126
140
- rustfmt
141
+ if : ' contains(github.event.pull_request.labels.*.name, '' CI: approved'' )'
127
142
env :
128
143
IMAGE_NAME : ghcr.io/integer32llc/rust-playground-ci-tool-${{ matrix.tool }}
129
144
steps :
130
145
- name : Checkout code
131
146
uses : actions/checkout@v2
147
+ with :
148
+ ref : " ${{ github.event.pull_request.head.sha }}"
132
149
- name : Set up Docker Buildx
133
150
uses : docker/setup-buildx-action@v1
134
151
with :
@@ -155,9 +172,12 @@ jobs:
155
172
build_backend :
156
173
name : Build backend
157
174
runs-on : ubuntu-latest
175
+ if : ' contains(github.event.pull_request.labels.*.name, '' CI: approved'' )'
158
176
steps :
159
177
- name : Checkout code
160
178
uses : actions/checkout@v2
179
+ with :
180
+ ref : " ${{ github.event.pull_request.head.sha }}"
161
181
- name : Cache Cargo intermediate products
162
182
uses : actions/cache@v2
163
183
with :
@@ -182,9 +202,12 @@ jobs:
182
202
build_frontend :
183
203
name : Build frontend
184
204
runs-on : ubuntu-latest
205
+ if : ' contains(github.event.pull_request.labels.*.name, '' CI: approved'' )'
185
206
steps :
186
207
- name : Checkout code
187
208
uses : actions/checkout@v2
209
+ with :
210
+ ref : " ${{ github.event.pull_request.head.sha }}"
188
211
- name : Get yarn cache directory path
189
212
id : yarn-cache-dir-path
190
213
run : echo "::set-output name=dir::$(yarn cache dir)"
@@ -214,6 +237,7 @@ jobs:
214
237
run_integration_tests :
215
238
name : Running integration tests
216
239
runs-on : ubuntu-latest
240
+ if : ' contains(github.event.pull_request.labels.*.name, '' CI: approved'' )'
217
241
needs :
218
242
- build_compiler_containers
219
243
- build_tool_containers
@@ -225,6 +249,8 @@ jobs:
225
249
steps :
226
250
- name : Checkout code
227
251
uses : actions/checkout@v2
252
+ with :
253
+ ref : " ${{ github.event.pull_request.head.sha }}"
228
254
- name : Configure Ruby
229
255
uses : actions/setup-ruby@v1
230
256
with :
0 commit comments