Try review dog
This commit is contained in:
parent
19dac97480
commit
d57ee06ab7
|
@ -7,23 +7,14 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fixup:
|
fixup_lint:
|
||||||
name: Fix up
|
name: Fix lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust
|
|
||||||
uses: dtolnay/rust-toolchain@master
|
|
||||||
with:
|
|
||||||
# We use nightly so that `fmt` correctly groups together imports, and
|
|
||||||
# clippy correctly fixes up the benchmarks.
|
|
||||||
toolchain: nightly-2022-12-01
|
|
||||||
components: rustfmt
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: Setup Poetry
|
- name: Setup Poetry
|
||||||
uses: matrix-org/setup-python-poetry@v1
|
uses: matrix-org/setup-python-poetry@v1
|
||||||
with:
|
with:
|
||||||
|
@ -41,12 +32,34 @@ jobs:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: poetry run ruff --fix .
|
run: poetry run ruff --fix .
|
||||||
|
|
||||||
|
- uses: reviewdog/action-suggester@v1
|
||||||
|
with:
|
||||||
|
tool_name: lint
|
||||||
|
|
||||||
|
|
||||||
|
fixup_rust:
|
||||||
|
name: Fix rust
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Rust
|
||||||
|
uses: dtolnay/rust-toolchain@master
|
||||||
|
with:
|
||||||
|
# We use nightly so that `fmt` correctly groups together imports, and
|
||||||
|
# clippy correctly fixes up the benchmarks.
|
||||||
|
toolchain: nightly-2022-12-01
|
||||||
|
components: rustfmt, clippy
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- run: cargo clippy --all-features --fix -- -D warnings
|
- run: cargo clippy --all-features --fix -- -D warnings
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- run: cargo fmt
|
- run: cargo fmt
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
- uses: reviewdog/action-suggester@v1
|
||||||
with:
|
with:
|
||||||
commit_message: "Attempt to fix linting"
|
tool_name: rust
|
||||||
|
|
Loading…
Reference in New Issue