Skip to content

Commit 153e4e9

Browse files
committed
ci: fix the golang ci
1 parent ce54ddc commit 153e4e9

1 file changed

Lines changed: 17 additions & 19 deletions

File tree

.github/workflows/go.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
name: Go CI
2-
32
on:
43
push:
5-
branches: [ "main", "master" ]
4+
branches: ["main", "master"]
65
pull_request:
7-
branches: [ "main", "master" ]
8-
6+
branches: ["main", "master"]
97
jobs:
108
build:
119
runs-on: ubuntu-latest
1210
steps:
13-
- uses: actions/checkout@v4
14-
15-
- name: Set up Go
16-
uses: actions/setup-go@v4
17-
with:
18-
go-version: '1.22'
19-
20-
- name: Install Dependencies
21-
run: go mod download
22-
23-
- name: Build
24-
run: go build -v -o anongo ./cmd/anongo/main.go
25-
26-
- name: Test
27-
run: go test -v ./...
11+
- uses: actions/checkout@v4
12+
- name: Set up Go
13+
uses: actions/setup-go@v4
14+
with:
15+
go-version: '1.22'
16+
- name: Install dependencies
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y libpcap-dev
20+
- name: Install Dependencies
21+
run: go mod download
22+
- name: Build
23+
run: go build -v -o anongo ./cmd/anongo/main.go
24+
- name: Test
25+
run: go test -v ./...

0 commit comments

Comments
 (0)