From 4cc24eb952ba31eb7eb9f54e8acc88149687d4bb Mon Sep 17 00:00:00 2001 From: Anton Ekblad Date: Tue, 10 Sep 2024 01:37:01 +0200 Subject: [PATCH] Add linting to GitHub CI. --- .github/workflows/unit-tests.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 22c3c31..125b0fa 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,7 +1,7 @@ name: Run unit tests on: [push] jobs: - run-unit-tests: + unit-tests: runs-on: self-hosted steps: - run: curl https://sh.rustup.rs -sSf | sh -s -- -y @@ -11,3 +11,13 @@ jobs: . "$HOME/.cargo/env" cargo test dbus-run-session cargo test --features=install,dbus-tests + clippy: + runs-on: self-hosted + steps: + - run: curl https://sh.rustup.rs -sSf | sh -s -- -y + - name: Check out repo + uses: actions/checkout@v4 + - run: | + . "$HOME/.cargo/env" + cargo clippy + cargo clippy --features=install,dbus-tests