-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 945 Bytes
/
lint-rsp.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
35
36
37
38
39
40
41
42
43
44
name: Lint RaspberryPi
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- ready_for_review
- synchronize
jobs:
lint:
if: github.event.pull_request.draft != true
name: Run golangci-lint via Makefile
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: awalsh128/[email protected]
with:
packages: libpcap0.8-dev
version: 1.0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.23.4
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.2
- name: Run golangci-lint:rsp
run: |
cd raspberry-pi
go mod tidy
make lint