Skip to content

Commit 9458ced

Browse files
committed
ci: add actions
1 parent 8d9b458 commit 9458ced

File tree

3 files changed

+42
-2
lines changed

3 files changed

+42
-2
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gomod
4+
directory: /
5+
open-pull-requests-limit: 10
6+
schedule:
7+
interval: monthly

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "master", "dev" ]
7+
pull_request:
8+
branches: [ "master", "dev" ]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v4
22+
with:
23+
go-version: '1.21'
24+
25+
- name: Set up deps
26+
run: |
27+
sudo apt-get install -y gcc flex bison make
28+
29+
- name: Build
30+
run: make build
31+
32+
- name: Test
33+
run: go test -v ./...
34+

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ ifeq ($(wildcard $@), )
3232
$(GIT) submodule update --init --recursive
3333
endif
3434

35-
$(LIBPCAP_DIST_DIR): $(OUTPUT)
36-
mkdir -p $(LIBPCAP_DIST_DIR)
35+
$(LIBPCAP_DIST_DIR): $(LIBPCAP_SRC)
3736

3837
$(OUTPUT):
3938
mkdir -p $(OUTPUT)

0 commit comments

Comments
 (0)