ci: Fix autofix workflow (#55004)
It also still does too much, but is at least faster while doing so. Release Notes: - N/A
This commit is contained in:
1 parent
88e10832cc
commit
4230885f49
2 files changed
+10
-11
No files matched your search
@@ -16,6 +16,9 @@ on:
|
||||
jobs:
|
||||
run_autofix:
|
||||
runs-on: namespace-profile-16x32-ubuntu-2204
|
||||
env:
|
||||
CC: clang
|
||||
CXX: clang++
|
||||
steps:
|
||||
- name: steps::checkout_repo
|
||||
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
|
||||
@@ -50,13 +53,13 @@ jobs:
|
||||
tool: cargo-machete@0.7.0
|
||||
- name: autofix_pr::run_autofix::run_cargo_fix
|
||||
if: ${{ inputs.run_clippy }}
|
||||
run: cargo fix --workspace --release --all-targets --all-features --allow-dirty --allow-staged
|
||||
run: cargo fix --workspace --allow-dirty --allow-staged
|
||||
- name: autofix_pr::run_autofix::run_cargo_machete_fix
|
||||
if: ${{ inputs.run_clippy }}
|
||||
run: cargo machete --fix
|
||||
- name: autofix_pr::run_autofix::run_clippy_fix
|
||||
if: ${{ inputs.run_clippy }}
|
||||
run: cargo clippy --workspace --release --all-targets --all-features --fix --allow-dirty --allow-staged
|
||||
run: cargo clippy --workspace --fix --allow-dirty --allow-staged
|
||||
- name: autofix_pr::run_autofix::run_prettier_fix
|
||||
run: ./script/prettier --write
|
||||
- name: autofix_pr::run_autofix::run_cargo_fmt
|
||||
|
||||
Reference in new issue
Block a user