-
Notifications
You must be signed in to change notification settings - Fork 101
31 lines (31 loc) · 838 Bytes
/
lint.yml
File metadata and controls
31 lines (31 loc) · 838 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: lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: cachix/install-nix-action@v27
- uses: HatsuneMiku3939/direnv-action@v1
- name: direnv allow
run: direnv allow .
- name: Run goimports
run: direnv exec . make -f scripts/Makefile fmt
- name: Lint
run: direnv exec . make -f scripts/Makefile lint
- name: Gen proto
run: direnv exec . make -f scripts/Makefile gen-proto
- name: Check diff
shell: bash
run: git diff --exit-code