diff --git a/.github/workflows/ci.pinnacle.yml b/.github/workflows/ci.pinnacle.yml index 94cc4d8..d1203e0 100644 --- a/.github/workflows/ci.pinnacle.yml +++ b/.github/workflows/ci.pinnacle.yml @@ -45,36 +45,6 @@ jobs: components: rustfmt - name: Check formatting run: cargo fmt -- --check - clippy-review: - permissions: - contents: read - checks: write - issues: write - pull-requests: write - runs-on: ubuntu-latest - name: Clippy review - if: ${{ github.event_name == 'pull_request' }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Get Rust toolchain - uses: dtolnay/rust-toolchain@stable - with: - components: clippy - - name: Get dependencies - run: sudo apt update && sudo apt install libwayland-dev libxkbcommon-dev libudev-dev libinput-dev libgbm-dev libseat-dev libsystemd-dev protobuf-compiler - - name: Setup Lua - uses: leafo/gh-actions-lua@v10 - with: - luaVersion: "5.4" - - name: Setup LuaRocks - uses: leafo/gh-actions-luarocks@v4 - - name: Run Clippy fix - run: cargo clippy --fix --allow-dirty - - name: Clippy review - uses: reviewdog/action-suggester@v1 - with: - tool_name: clippy clippy-check: runs-on: ubuntu-latest name: Clippy check diff --git a/.github/workflows/clippy-review.yml b/.github/workflows/clippy-review.yml new file mode 100644 index 0000000..ba3e25c --- /dev/null +++ b/.github/workflows/clippy-review.yml @@ -0,0 +1,35 @@ +name: CI (Pinnacle) + +on: + workflow_dispatch: + +jobs: + clippy-review: + permissions: + contents: read + checks: write + issues: write + pull-requests: write + runs-on: ubuntu-latest + name: Clippy review + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Get Rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - name: Get dependencies + run: sudo apt update && sudo apt install libwayland-dev libxkbcommon-dev libudev-dev libinput-dev libgbm-dev libseat-dev libsystemd-dev protobuf-compiler + - name: Setup Lua + uses: leafo/gh-actions-lua@v10 + with: + luaVersion: "5.4" + - name: Setup LuaRocks + uses: leafo/gh-actions-luarocks@v4 + - name: Run Clippy fix + run: cargo clippy --fix --allow-dirty + - name: Clippy review + uses: reviewdog/action-suggester@v1 + with: + tool_name: clippy