Skip to content

Commit 8847d96

Browse files
committed
add ci
1 parent 42ca91d commit 8847d96

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version: "1.25"
19+
20+
- name: Cache Go modules
21+
uses: actions/cache@v4
22+
with:
23+
path: ~/go/pkg/mod
24+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
25+
restore-keys: |
26+
${{ runner.os }}-go-
27+
28+
- name: Build
29+
run: make build
30+
31+
- name: Run unit tests
32+
run: make test-unit
33+
34+
- name: Run integration tests
35+
run: make test-integration

0 commit comments

Comments
 (0)