@@ -38,21 +38,12 @@ jobs:
38
38
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
39
39
with :
40
40
submodules : recursive
41
- - uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
42
- with :
43
- profile : minimal
44
- toolchain : " 1.65.0"
45
- override : true
41
+
46
42
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
47
43
with :
48
44
key : udeps
49
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # renovate: tag=v1.0.3
50
- with :
51
- command : install
52
- args : cargo-udeps --locked
53
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # renovate: tag=v1.0.3
54
- with :
55
- command : udeps
45
+ - run : cargo install cargo-udeps
46
+ - run : cargo udeps
56
47
57
48
# This job evaluates the github environment to determine why this action is running and selects the appropriate
58
49
# target repository for published Helm charts based on this.
@@ -86,16 +77,16 @@ jobs:
86
77
run : |
87
78
if [[ $TRIGGER == "pull_request" ]]; then
88
79
echo "exporting test as target helm repo: ${{ env.TEST_REPO_HELM_URL }}"
89
- echo "::set-output name= helm_repo:: ${{ env.TEST_REPO_HELM_URL }}"
80
+ echo "helm_repo= ${{ env.TEST_REPO_HELM_URL }}" >> $GITHUB_OUTPUT
90
81
elif [[ $TRIGGER == "push" && $GITHUB_REF == "refs/heads/main" ]]; then
91
82
echo "exporting dev as target helm repo: ${{ env.DEV_REPO_HELM_URL }}"
92
- echo "::set-output name= helm_repo:: ${{ env.DEV_REPO_HELM_URL }}"
83
+ echo "helm_repo= ${{ env.DEV_REPO_HELM_URL }}" >> $GITHUB_OUTPUT
93
84
elif [[ ( $TRIGGER == "create" || $TRIGGER == "push" ) && $GITHUB_REF == refs/tags/* ]]; then
94
85
echo "exporting stable as target helm repo: ${{ env.STABLE_REPO_HELM_URL }}"
95
- echo "::set-output name= helm_repo:: ${{ env.STABLE_REPO_HELM_URL }}"
86
+ echo "helm_repo= ${{ env.STABLE_REPO_HELM_URL }}" >> $GITHUB_OUTPUT
96
87
else
97
88
echo "Unknown trigger and ref combination encountered, skipping publish step: $TRIGGER $GITHUB_REF"
98
- echo "::set-output name= helm_repo:: skip"
89
+ echo "helm_repo= skip" >> $GITHUB_OUTPUT
99
90
fi
100
91
101
92
run_cargodeny :
@@ -125,16 +116,10 @@ jobs:
125
116
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
126
117
with :
127
118
submodules : recursive
128
- - uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
119
+ - uses : dtolnay/rust- toolchain@1.65.0
129
120
with :
130
- profile : minimal
131
- toolchain : " 1.65.0"
132
121
components : rustfmt
133
- override : true
134
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # renovate: tag=v1.0.3
135
- with :
136
- command : fmt
137
- args : --all -- --check
122
+ - run : cargo fmt --all -- --check
138
123
139
124
run_clippy :
140
125
name : Run Clippy
@@ -147,12 +132,9 @@ jobs:
147
132
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
148
133
with :
149
134
submodules : recursive
150
- - uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
135
+ - uses : dtolnay/rust- toolchain@1.65.0
151
136
with :
152
- profile : minimal
153
- toolchain : " 1.65.0"
154
137
components : clippy
155
- override : true
156
138
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
157
139
with :
158
140
key : clippy
@@ -181,19 +163,13 @@ jobs:
181
163
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
182
164
with :
183
165
submodules : recursive
184
- - uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
166
+ - uses : dtolnay/rust- toolchain@1.65.0
185
167
with :
186
- profile : minimal
187
- toolchain : " 1.65.0"
188
168
components : rustfmt
189
- override : true
190
169
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
191
170
with :
192
171
key : doc
193
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # renovate: tag=v1.0.3
194
- with :
195
- command : doc
196
- args : --document-private-items
172
+ - run : cargo doc --document-private-items
197
173
198
174
run_tests :
199
175
name : Run Cargo Tests
@@ -206,17 +182,12 @@ jobs:
206
182
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
207
183
with :
208
184
submodules : recursive
209
- - uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
210
- with :
211
- profile : minimal
212
- toolchain : " 1.65.0"
213
- override : true
185
+
214
186
- uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
215
187
with :
216
188
key : test
217
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # renovate: tag=v1.0.3
218
- with :
219
- command : test
189
+ - run : cargo test
190
+
220
191
221
192
# Similar to check_charts, this tries to render the README, and see if there are unintended changes.
222
193
# This will save us from merging changes to the wrong file (instead of the templated source), and from
@@ -272,11 +243,7 @@ jobs:
272
243
with :
273
244
version : v3.6.2
274
245
- name : Set up cargo
275
- uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
276
- with :
277
- profile : minimal
278
- toolchain : " 1.65.0"
279
- override : true
246
+
280
247
- name : Set up rust-cache
281
248
uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
282
249
with :
@@ -329,12 +296,9 @@ jobs:
329
296
submodules : recursive
330
297
- uses : actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4
331
298
if : ${{ github.event_name == 'pull_request' }}
332
- - uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
299
+ - uses : dtolnay/rust- toolchain@1.65.0
333
300
with :
334
- profile : minimal
335
- toolchain : " 1.65.0"
336
301
components : rustfmt
337
- override : true
338
302
- name : Install requirements for version tool
339
303
if : ${{ github.event_name == 'pull_request' }}
340
304
run : pip install -r python/requirements.txt
0 commit comments