|
42 | 42 | - uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
|
43 | 43 | with:
|
44 | 44 | key: udeps
|
45 |
| - - run: cargo install cargo-udeps |
| 45 | + - run: cargo install --locked cargo-udeps@0.1.39 |
46 | 46 | - run: cargo udeps --workspace
|
47 | 47 |
|
48 | 48 | # This job evaluates the github environment to determine why this action is running and selects the appropriate
|
@@ -139,18 +139,19 @@ jobs:
|
139 | 139 | with:
|
140 | 140 | key: clippy
|
141 | 141 | - name: Run clippy action to produce annotations
|
| 142 | + uses: giraffate/clippy-action@13b9d32482f25d29ead141b79e7e04e7900281e0 # v1.0.1 |
142 | 143 | env:
|
143 | 144 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
144 |
| - uses: actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d # renovate: tag=v1.0.7 |
145 | 145 | if: env.GITHUB_TOKEN != null
|
146 | 146 | with:
|
147 |
| - args: --all-targets -- -D warnings |
148 |
| - token: ${{ secrets.GITHUB_TOKEN }} |
| 147 | + clippy_flags: --all-targets -- -D warnings |
| 148 | + reporter: 'github-pr-review' |
| 149 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
149 | 150 | - name: Run clippy manually without annotations
|
150 | 151 | env:
|
151 | 152 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
152 | 153 | if: env.GITHUB_TOKEN == null
|
153 |
| - run: cargo clippy --all-targets -- -D warnings |
| 154 | + run: cargo clippy --color never -q --all-targets -- -D warnings |
154 | 155 |
|
155 | 156 | run_rustdoc:
|
156 | 157 | name: Run RustDoc
|
@@ -200,9 +201,9 @@ jobs:
|
200 | 201 | uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
201 | 202 | with:
|
202 | 203 | submodules: recursive
|
203 |
| - - uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4 |
| 204 | + - uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.6.1 |
204 | 205 | with:
|
205 |
| - python-version: '3.10' |
| 206 | + python-version: '3.11' |
206 | 207 | - name: Install jinja2-cli
|
207 | 208 | run: pip install jinja2-cli==0.8.2
|
208 | 209 | - name: Regenerate charts
|
@@ -296,21 +297,17 @@ jobs:
|
296 | 297 | uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
297 | 298 | with:
|
298 | 299 | submodules: recursive
|
299 |
| - - uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4 |
300 |
| - if: ${{ github.event_name == 'pull_request' }} |
301 | 300 |
|
302 | 301 | with:
|
303 | 302 | components: rustfmt
|
304 |
| - - name: Install requirements for version tool |
305 |
| - if: ${{ github.event_name == 'pull_request' }} |
306 |
| - run: pip install -r python/requirements.txt |
307 |
| - |
308 | 303 | # This step checks if the current run was triggered by a push to a pr (or a pr being created).
|
309 | 304 | # If this is the case it changes the version of this project in all Cargo.toml files to include the suffix
|
310 | 305 | # "-pr<prnumber>" so that the published artifacts can be linked to this PR.
|
311 | 306 | - name: Update version if PR
|
312 | 307 | if: ${{ github.event_name == 'pull_request' }}
|
313 |
| - run: python/cargo_version.py -m pr${{ github.event.pull_request.number }} |
| 308 | + run: | |
| 309 | + cargo install cargo-edit --version 0.11.11 |
| 310 | + cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }} |
314 | 311 |
|
315 | 312 | # Recreate charts and publish charts and docker image. The "-e" is needed as we want to override the
|
316 | 313 | # default value in the makefile if called from this action, but not otherwise (i.e. when called locally).
|
|
0 commit comments