Skip to content

Commit

Permalink
Add clippy and rustfmt check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
trumank committed Aug 13, 2023
1 parent 6acca34 commit dd0d98d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on: [push, pull_request]
name: Run checks

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install packages
run: sudo apt-get update && sudo apt-get install libgtk-3-dev gcc-mingw-w64

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy, rustfmt
target: x86_64-pc-windows-gnu
override: true

- uses: actions-rs/clippy-check@v1
name: Check clippy
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --all-targets -- -D warnings

- name: Check rustfmt
run: cargo fmt -- --check

0 comments on commit dd0d98d

Please sign in to comment.