Add Dependabot config #2
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: Run checks | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches-ignore: ["main"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust Toolchain for GitHub CI | |
uses: actions-rust-lang/[email protected] | |
with: | |
components: clippy, rustfmt | |
- name: Check | |
run: cargo check --all-targets --all-features | |
- name: Format | |
run: cargo fmt --all -- --check | |
- name: Clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: Test | |
run: cargo test --all-features |