@@ -38,21 +38,12 @@ jobs:
3838 - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
3939 with :
4040 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+ - uses : dtolnay/rust-toolchain@1.65.0
4642 - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
4743 with :
4844 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
5647
5748 # This job evaluates the github environment to determine why this action is running and selects the appropriate
5849 # target repository for published Helm charts based on this.
@@ -86,16 +77,16 @@ jobs:
8677 run : |
8778 if [[ $TRIGGER == "pull_request" ]]; then
8879 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
9081 elif [[ $TRIGGER == "push" && $GITHUB_REF == "refs/heads/main" ]]; then
9182 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
9384 elif [[ ( $TRIGGER == "create" || $TRIGGER == "push" ) && $GITHUB_REF == refs/tags/* ]]; then
9485 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
9687 else
9788 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
9990 fi
10091
10192 run_cargodeny :
@@ -125,16 +116,10 @@ jobs:
125116 - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
126117 with :
127118 submodules : recursive
128- - uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
119+ - uses : dtolnay/rust- toolchain@1.65.0
129120 with :
130- profile : minimal
131- toolchain : " 1.65.0"
132121 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
138123
139124 run_clippy :
140125 name : Run Clippy
@@ -147,12 +132,9 @@ jobs:
147132 - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
148133 with :
149134 submodules : recursive
150- - uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
135+ - uses : dtolnay/rust- toolchain@1.65.0
151136 with :
152- profile : minimal
153- toolchain : " 1.65.0"
154137 components : clippy
155- override : true
156138 - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
157139 with :
158140 key : clippy
@@ -181,19 +163,13 @@ jobs:
181163 - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
182164 with :
183165 submodules : recursive
184- - uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7
166+ - uses : dtolnay/rust- toolchain@1.65.0
185167 with :
186- profile : minimal
187- toolchain : " 1.65.0"
188168 components : rustfmt
189- override : true
190169 - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
191170 with :
192171 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
197173
198174 run_tests :
199175 name : Run Cargo Tests
@@ -206,17 +182,12 @@ jobs:
206182 - uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
207183 with :
208184 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+ - uses : dtolnay/rust-toolchain@1.65.0
214186 - uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
215187 with :
216188 key : test
217- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # renovate: tag=v1.0.3
218- with :
219- command : test
189+ - run : cargo test
190+
220191
221192 # Similar to check_charts, this tries to render the README, and see if there are unintended changes.
222193 # This will save us from merging changes to the wrong file (instead of the templated source), and from
@@ -272,11 +243,7 @@ jobs:
272243 with :
273244 version : v3.6.2
274245 - 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+ uses : dtolnay/rust-toolchain@1.65.0
280247 - name : Set up rust-cache
281248 uses : Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
282249 with :
@@ -329,12 +296,9 @@ jobs:
329296 submodules : recursive
330297 - uses : actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4
331298 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
333300 with :
334- profile : minimal
335- toolchain : " 1.65.0"
336301 components : rustfmt
337- override : true
338302 - name : Install requirements for version tool
339303 if : ${{ github.event_name == 'pull_request' }}
340304 run : pip install -r python/requirements.txt
0 commit comments