12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 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@v2
- - uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: nightly
- components: rustfmt, clippy
- - name: Check formatting
- run: |
- cargo +nightly fmt --all -- --check
- pushd bpf
- cargo +nightly fmt --all -- --check
- popd
- - name: Run clippy
- run: |
- cargo +nightly clippy -p aya -- --deny warnings
- cargo +nightly clippy -p aya-gen -- --deny warnings
- cargo +nightly clippy -p xtask -- --deny warnings
- pushd bpf
- cargo +nightly clippy -p aya-bpf -- --deny warnings
- popd
|