fix lint #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: '*' | |
jobs: | |
taplo-lint: | |
name: Lint toml files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/[email protected] | |
- uses: Swatinem/rust-cache@v2 | |
- name: install taplo cli | |
run: cargo install taplo-cli | |
- name: lint toml | |
run: taplo lint | |
- name: check format toml | |
run: taplo format --check | |
lint: | |
name: Lint files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/[email protected] | |
with: | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
- name: run format | |
run: cargo fmt --all -- --check | |
- name: run clippy | |
run: cargo clippy -- -D warnings | |
- name: run check | |
run: cargo check | |
- name: run audit | |
run: | | |
cargo install cargo-audit --locked | |
cargo audit --ignore RUSTSEC-2024-0344 --ignore RUSTSEC-2022-0093 |