-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 963 Bytes
/
style.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
name: Code Style
on:
pull_request:
push:
braches: [master]
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13
with:
install_url: https://nixos-nix-install-tests.cachix.org/serve/0f7lh6yrv84dj3a2ar073d1mwrfiflsz/install
install_options: --tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v10
with:
name: cascade
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Bootstrap
run: nix -Lv develop -c ./scripts/bootstrap.sh
- name: Check headers
run: |
set +e
nix -Lv develop -c pre-commit run --all-files
exitcode=$?
[ $exitcode != 0 ] && git --no-pager diff --color
exit $exitcode