From 5d7b13e0bc56d67067f4363c63f442fc3834f9dd Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Tue, 5 Oct 2021 23:20:07 +0200 Subject: [PATCH] feat(ci): add clippy and formatting checks --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c889820..7a832a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,14 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Check formatting + run: | + rustup component add rustfmt + cargo fmt --all -- --check + - name: Check clippy + run: | + rustup component add clippy + cargo clippy -- -D warnings - name: Install cargo-make run: | cargo install --force cargo-make @@ -35,6 +43,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Check formatting + run: | + rustup component add rustfmt + cargo fmt --all -- --check + - name: Check clippy + run: | + rustup component add clippy + cargo clippy -p espanso --features wayland -- -D warnings - name: Install dependencies run: | sudo apt install libxkbcommon-dev libwxgtk3.0-gtk3-dev libdbus-1-dev