Skip to content

Commit 8e673ef

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

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
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+

0 commit comments

Comments
 (0)