-
Notifications
You must be signed in to change notification settings - Fork 475
43 lines (39 loc) · 1.14 KB
/
pre-commit.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
name: pre-commit
on: [push, pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
container:
image: archlinux
strategy:
fail-fast: false
matrix:
hook: [ check-toml,
check-yaml,
check-merge-conflict,
check-case-conflict,
detect-private-key,
mixed-line-ending,
trailing-whitespace,
cspell,
typos,
cargo-fmt,
cargo-clippy,
cargo-test,
verify_icon_files
]
steps:
- name: Get required packages and config git
run: |
pacman --noconfirm --noprogressbar -Syu base-devel clang git libpipewire libpulse lm_sensors notmuch openssl rsync
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: pre-commit/[email protected]
with:
extra_args: ${{ matrix.hook }} --all-files