From 96ff974b824d250846ab73aa98c8cbe0ab44e9ee Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Mon, 15 Aug 2022 21:16:18 +0100 Subject: [PATCH] ci(build): fix clippy, add fmt check --- .github/workflows/build.yml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ddea68..30f5679 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,17 +11,22 @@ env: jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - name: Install build deps - run: sudo apt install libgtk-3-dev libgtk-layer-shell-dev - - - name: Build - run: cargo build --verbose - - - name: Run clippy - run: cargo clippy --verbose + - uses: actions/checkout@v3 + + - name: Install build deps + run: sudo apt install libgtk-3-dev libgtk-layer-shell-dev + + - name: Build + run: cargo build --verbose + + - name: Clippy + uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features + + - name: Check formatting + run: cargo fmt --check