forked from greshake/i3status-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 812 Bytes
/
pre-commit.yml
File metadata and controls
33 lines (29 loc) · 812 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
30
31
name: pre-commit
on: [push, pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
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,
]
steps:
- name: Get required packages
run: sudo apt-get update && sudo apt-get install libsensors-dev libssl-dev libpulse-dev libnotmuch-dev
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: pre-commit/action@v3.0.0
with:
extra_args: ${{ matrix.hook }} --all-files