-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 1.11 KB
/
Copy pathlinting.yml
File metadata and controls
48 lines (40 loc) · 1.11 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Linting
on:
pull_request:
paths:
- "Linux/**"
- ".github/dependabot.yml"
- ".github/workflows/**"
push:
branches:
- main
paths:
- "Linux/**"
- ".github/dependabot.yml"
- ".github/workflows/**"
jobs:
linting:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: Linux/installer/go.mod
cache-dependency-path: Linux/installer/go.sum
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: Install shell-check toolchain (fish, shellcheck, jq)
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends fish shellcheck jq
- name: Lint GitHub Actions workflows
run: nix run nixpkgs#actionlint -- .github/workflows/*.yml
- name: Run linting + tests
run: make -C Linux all