name: Clippy and rustfmt check on: push: branches: - master pull_request: jobs: clippy_check: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - uses: actions-rs/toolchain@v1 with: toolchain: nightly components: clippy, rustfmt override: true - name: Clippy uses: actions-rs/cargo@v1 with: command: clippy args: --all-features - name: rustfmt uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check