mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-01-19 10:26:36 +01:00
Make CI work
This commit is contained in:
parent
dcd5e15ac7
commit
52ac3f5280
1 changed files with 31 additions and 13 deletions
44
.github/workflows/ci.pinnacle.yml
vendored
44
.github/workflows/ci.pinnacle.yml
vendored
|
@ -45,9 +45,14 @@ jobs:
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: cargo fmt -- --check
|
run: cargo fmt -- --check
|
||||||
clippy-pr:
|
clippy-review:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
checks: write
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Clippy (pull request)
|
name: Clippy review
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -56,15 +61,23 @@ jobs:
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
components: clippy
|
components: clippy
|
||||||
- name: Clippy review
|
- name: Get dependencies
|
||||||
uses: giraffate/clippy-action@v1
|
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:
|
with:
|
||||||
reporter: "github-pr-review"
|
luaVersion: "5.4"
|
||||||
clippy_flags: -- -D warnings
|
- name: Setup LuaRocks
|
||||||
clippy-push:
|
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
|
runs-on: ubuntu-latest
|
||||||
name: Clippy (push)
|
name: Clippy check
|
||||||
if: ${{ github.event_name == 'push' }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -72,8 +85,13 @@ jobs:
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
components: clippy
|
components: clippy
|
||||||
- name: Clippy check
|
- name: Get dependencies
|
||||||
uses: giraffate/clippy-action@v1
|
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:
|
with:
|
||||||
reporter: "github-check"
|
luaVersion: "5.4"
|
||||||
clippy_flags: -- -D warnings
|
- name: Setup LuaRocks
|
||||||
|
uses: leafo/gh-actions-luarocks@v4
|
||||||
|
- name: Clippy check
|
||||||
|
run: cargo clippy -- -D warnings
|
||||||
|
|
Loading…
Reference in a new issue