-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (23 loc) · 935 Bytes
/
Copy pathlint.yaml
File metadata and controls
32 lines (23 loc) · 935 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
32
name: lint
on:
push: {}
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
- name: shellcheck
run: |
mapfile -t scripts < <(find . -name '*.sh' -not -path './.git/*' | sort)
nix shell github:NixOS/nixpkgs/nixpkgs-26.05-darwin#shellcheck --command shellcheck "${scripts[@]}"
- name: actionlint
run: nix shell github:NixOS/nixpkgs/nixpkgs-26.05-darwin#actionlint --command actionlint
- name: zizmor
run: nix shell github:NixOS/nixpkgs/nixpkgs-26.05-darwin#zizmor --command zizmor .
- name: statix
run: nix shell github:NixOS/nixpkgs/nixpkgs-26.05-darwin#statix --command statix check .