forked from greshake/i3status-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 877 Bytes
/
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
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,
cspell,
typos,
fmt,
clippy,
cargo-test,
verify_icon_files
]
steps:
- name: Get required packages
run: pacman --noconfirm --noprogressbar -Syu clang libpipewire libpulse lm_sensors notmuch rust
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: pre-commit/[email protected]
with:
extra_args: ${{ matrix.hook }} --all-files