1234567891011121314151617181920212223242526272829303132333435363738 |
- name: lint
- on:
- push:
- branches:
- - main
- - ci
- pull_request:
- branches:
- - main
- env:
- CARGO_TERM_COLOR: always
- jobs:
- lint:
- runs-on: ubuntu-20.04
- steps:
- - uses: actions/checkout@v3
- - uses: dtolnay/rust-toolchain@master
- with:
- toolchain: nightly
- components: rustfmt, clippy, miri, rust-src
- - name: Check formatting
- run: |
- cargo fmt --all -- --check
- - name: Run clippy
- run: |
- cargo clippy --workspace --exclude integration-test -- --deny warnings
- - name: Run miri
- run: |
- cargo miri test --all-targets
|