Merge branch 'main' into fix_bugs #10
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: ✨ | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- main | |
merge_group: | |
jobs: | |
style-checks: | |
name: Rust style checks | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
feature-flags: ['--features "strict"', ''] | |
steps: | |
- name: Set up Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt,clippy | |
- uses: actions/checkout@v3 | |
- name: Style checks | |
run: | | |
cargo fmt -- --check | |
cargo clippy ${{ matrix.feature-flags }} -- -D warnings | |
cargo clippy --tests ${{ matrix.feature-flags }} -- -D warnings | |
cargo clippy --examples ${{ matrix.feature-flags }} -- -D warnings |