forked from trumank/mint
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (24 loc) · 767 Bytes
/
Copy pathcheck.yml
File metadata and controls
29 lines (24 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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: dtolnay/rust-toolchain@nightly
with:
targets: x86_64-unknown-linux-gnu, x86_64-pc-windows-gnu
components: clippy, rustfmt
- name: Get versions
run: |
cargo fmt --version
cargo clippy --version
- 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