name: Style checks on: push: branches: [ master ] pull_request: branches: [ master ] jobs: fmt: name: Rustfmt runs-on: ubuntu-latest steps: - name: Checkout branch uses: actions/checkout@master with: submodules: true - name: Setup Rust toolchain uses: actions-rs/toolchain@v1 with: profile: minimal components: rustfmt - name: Run rustfmt uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check # Gave up on clippy, because different versions give different lints and it's not even forward- or backwards-compatible # clippy: # name: Clippy # runs-on: ubuntu-latest # steps: # - name: Checkout branch # uses: actions/checkout@master # with: # submodules: true # - name: Setup Rust toolchain # uses: actions-rs/toolchain@v1 # with: # profile: minimal # toolchain: 1.51.0 # components: clippy # override: true # - name: Run clippy # uses: actions-rs/cargo@v1 # with: # command: clippy # args: -- -D warnings