0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-12-22 20:38:22 -05:00

ci: fix clippy.yml

This commit is contained in:
neon_arch 2023-05-13 20:03:07 +03:00
parent 36aa2f9e86
commit b4a05bc940
2 changed files with 13 additions and 17 deletions

View File

@ -15,5 +15,5 @@ jobs:
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features -- -D warnings

View File

@ -8,20 +8,16 @@ on:
- "rolling"
jobs:
format:
name: rustfmt
formatting:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt
override: true
- uses: LoliGothick/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
flags: --all
options: --manifest-path=Cargo.toml
args: --config-path=rustfmt.toml
working-directory: my_crate
- uses: actions/checkout@v3
# Ensure rustfmt is installed and setup problem matcher
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt Check
uses: Syndelis/rustfmt-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}