Skip to content

Commit

Permalink
go generate on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
orishavit committed Aug 22, 2024
1 parent b088007 commit ef13a38
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ jobs:
go-version: '1.21.3'
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt update && sudo apt install libpcap-dev # required for the linter to be able to lint github.com/google/gopacket
run: |
sudo apt update && sudo apt install libpcap-dev clang libelf-dev libbpf-dev linux-headers-generic
ln -sf /usr/include/$(uname -m)-linux-gnu/asm /usr/include/asm
- name: go generate
run: |
go generate ./...
go generate -tags ebpf ./...
working-directory: src
- name: go vet
Expand All @@ -44,7 +46,13 @@ jobs:
go-version: '1.21.3'
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt update && sudo apt install libpcap-dev # required for the linter to be able to lint github.com/google/gopacket
run: |
sudo apt update && sudo apt install libpcap-dev clang libelf-dev libbpf-dev linux-headers-generic
ln -sf /usr/include/$(uname -m)-linux-gnu/asm /usr/include/asm
- name: go generate
run: |
go generate -tags ebpf ./...
working-directory: src
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down

0 comments on commit ef13a38

Please sign in to comment.