-
-
Notifications
You must be signed in to change notification settings - Fork 38
24 lines (22 loc) · 679 Bytes
/
linting.yml
File metadata and controls
24 lines (22 loc) · 679 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
name: lint
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt update && sudo apt install jackd2 libjack-jackd2-0 libjack-jackd2-dev
- name: Lint (Default Features)
run: cargo clippy --all-targets -- -D clippy::all || echo "Lint errors detected."
- name: Lint (No features)
run: cargo clippy --all-targets --no-default-features -- -D clippy::all || echo "Lint errors detected."
- name: Cargo Fmt
run: cargo fmt --check