-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (45 loc) · 981 Bytes
/
linter.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
45
46
47
48
49
50
51
52
on:
push:
branches:
- master
pull_request:
branches:
- master
name: Linter
permissions:
contents: read
jobs:
golint:
name: Golint
runs-on: ubuntu-latest
container:
image: ubuntu:24.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/setup-go@v2
with:
go-version: '^1.21'
- name: Install dependencies
run: |
apt update
apt install -y \
sudo \
curl \
build-essential \
xz-utils \
libpcap-dev \
clang \
llvm \
libbpf-dev \
libelf-dev
./install-capstone.sh
- name: Generate eBPF object files and Go bindings
run: make bpf
- name: Go lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=10m
go-version: '^1.21'