11
11
tags :
12
12
- ' [0-9][0-9].[0-9]+.[0-9]+'
13
13
pull_request :
14
+ merge_group :
14
15
15
16
env :
16
17
CARGO_TERM_COLOR : always
@@ -35,13 +36,14 @@ jobs:
35
36
run : |
36
37
sudo apt-get update
37
38
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
38
- - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
39
+ - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
39
40
with :
40
41
submodules : recursive
41
- - uses : dtolnay/rust-toolchain@1.68.2
42
- - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
42
+ - uses : dtolnay/rust-toolchain@1.71.0
43
+ - uses : Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2
43
44
with :
44
45
key : udeps
46
+ cache-all-crates : " true"
45
47
-
run :
cargo install --locked [email protected]
46
48
- run : cargo udeps --workspace
47
49
62
64
# repository: dev
63
65
#
64
66
# Any other scenarios (e.g. when a branch is created/pushed) will cause the publish step to be skipped, most commonly this is expected to happen for the
65
- # branches that bors uses internally (staging, trying) for which the checks need to run, but we do not want artifacts
66
- # to be published.
67
+ # branches that the GitHub merge queue feature uses internally for which the checks need to run, but we do not want artifacts to be published.
67
68
select_helm_repo :
68
69
name : Select target helm repository based on action trigger
69
70
runs-on : ubuntu-latest
@@ -102,21 +103,21 @@ jobs:
102
103
continue-on-error : ${{ matrix.checks == 'advisories' }}
103
104
104
105
steps :
105
- - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
106
+ - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
106
107
with :
107
108
submodules : recursive
108
- - uses : EmbarkStudios/cargo-deny-action@8a8607bd8e2b3a514d5a40174cc7c55b229d9ba7 # v1.4.0
109
+ - uses : EmbarkStudios/cargo-deny-action@a50c7d5f86370e02fae8472c398f15a36e517bb8 # v1
109
110
with :
110
111
command : check ${{ matrix.checks }}
111
112
112
113
run_rustfmt :
113
114
name : Run Rustfmt
114
115
runs-on : ubuntu-latest
115
116
steps :
116
- - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
117
+ - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
117
118
with :
118
119
submodules : recursive
119
- - uses : dtolnay/rust-toolchain@1.68.2
120
+ - uses : dtolnay/rust-toolchain@1.71.0
120
121
with :
121
122
components : rustfmt
122
123
- run : cargo fmt --all -- --check
@@ -129,15 +130,16 @@ jobs:
129
130
run : |
130
131
sudo apt-get update
131
132
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
132
- - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
133
+ - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
133
134
with :
134
135
submodules : recursive
135
- - uses : dtolnay/rust-toolchain@1.68.2
136
+ - uses : dtolnay/rust-toolchain@1.71.0
136
137
with :
137
138
components : clippy
138
- - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
139
+ - uses : Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2
139
140
with :
140
141
key : clippy
142
+ cache-all-crates : " true"
141
143
- name : Run clippy action to produce annotations
142
144
uses : giraffate/clippy-action@13b9d32482f25d29ead141b79e7e04e7900281e0 # v1.0.1
143
145
env :
@@ -161,15 +163,16 @@ jobs:
161
163
run : |
162
164
sudo apt-get update
163
165
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
164
- - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
166
+ - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
165
167
with :
166
168
submodules : recursive
167
- - uses : dtolnay/rust-toolchain@1.68.2
169
+ - uses : dtolnay/rust-toolchain@1.71.0
168
170
with :
169
171
components : rustfmt
170
- - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
172
+ - uses : Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2
171
173
with :
172
174
key : doc
175
+ cache-all-crates : " true"
173
176
- run : cargo doc --document-private-items
174
177
175
178
run_tests :
@@ -180,13 +183,14 @@ jobs:
180
183
run : |
181
184
sudo apt-get update
182
185
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
183
- - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
186
+ - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
184
187
with :
185
188
submodules : recursive
186
- - uses : dtolnay/rust-toolchain@1.68.2
187
- - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
189
+ - uses : dtolnay/rust-toolchain@1.71.0
190
+ - uses : Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2
188
191
with :
189
192
key : test
193
+ cache-all-crates : " true"
190
194
- run : cargo test
191
195
192
196
@@ -198,10 +202,10 @@ jobs:
198
202
runs-on : ubuntu-latest
199
203
steps :
200
204
- name : Checkout
201
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
205
+ uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
202
206
with :
203
207
submodules : recursive
204
- - uses : actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.6.1
208
+ - uses : actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4
205
209
with :
206
210
python-version : ' 3.11'
207
211
- name : Install jinja2-cli
@@ -212,7 +216,7 @@ jobs:
212
216
run : git diff --exit-code
213
217
- name : Git Diff showed uncommitted changes
214
218
if : ${{ failure() }}
215
- uses : actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6
219
+ uses : actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
216
220
with :
217
221
script : |
218
222
core.setFailed('Committed README are not up to date, please make sure to apply them to the templated partials, and re-commit!')
@@ -236,26 +240,27 @@ jobs:
236
240
sudo apt-get update
237
241
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
238
242
- name : Checkout
239
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
243
+ uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
240
244
with :
241
245
submodules : recursive
242
246
- name : Set up Helm
243
247
uses : azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
244
248
with :
245
249
version : v3.6.2
246
250
- name : Set up cargo
247
- uses : dtolnay/rust-toolchain@1.68.2
251
+ uses : dtolnay/rust-toolchain@1.71.0
248
252
- name : Set up rust-cache
249
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
253
+ uses : Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f # v2
250
254
with :
251
255
key : charts
256
+ cache-all-crates : " true"
252
257
- name : Regenerate charts
253
258
run : make regenerate-charts
254
259
- name : Check if committed charts were up to date
255
260
run : git diff --exit-code
256
261
- name : Git Diff showed uncommitted changes
257
262
if : ${{ failure() }}
258
- uses : actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6
263
+ uses : actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
259
264
with :
260
265
script : |
261
266
core.setFailed('Committed charts were not up to date, please regenerate and re-commit!')
@@ -296,10 +301,10 @@ jobs:
296
301
sudo apt-get update
297
302
sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config
298
303
- name : Checkout
299
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
304
+ uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
300
305
with :
301
306
submodules : recursive
302
- - uses : dtolnay/rust-toolchain@1.68.2
307
+ - uses : dtolnay/rust-toolchain@1.71.0
303
308
with :
304
309
components : rustfmt
305
310
# This step checks if the current run was triggered by a push to a pr (or a pr being created).
@@ -315,7 +320,7 @@ jobs:
315
320
# default value in the makefile if called from this action, but not otherwise (i.e. when called locally).
316
321
# This is needed for the HELM_REPO variable.
317
322
- name : Set up Cosign
318
- uses : sigstore/cosign-installer@v3.0.5
323
+ uses : sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 # v3
319
324
- name : Publish Docker image and Helm chart
320
325
run : make -e publish
321
326
# Output the name of the published image to the Job output for later use
0 commit comments