-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (34 loc) · 1.03 KB
/
check.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: check
on: {workflow_dispatch, push: {branches: [main]}, pull_request}
jobs:
prettier:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v26
- run: nix run .#nodePackages.prettier -- --config ./prettier.config.js --check .
nixpkgs-fmt:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v26
- run: nix run .#nixpkgs-fmt -- --check .
statix:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v26
- run: nix run .#statix -- check
deadnix:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v26
- run: nix run .#deadnix -- -f -_ -l .
vale:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v26
- run: nix profile install .#{vale,fd}
- run: vale sync && vale $(fd --glob --hidden '*.md')