Skip to content

Commit 065b772

Browse files
committed
chore: continuous integration
1 parent bc5c318 commit 065b772

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
name: Run Tests
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: "1.24"
22+
23+
- name: Download dependencies
24+
run: go mod download
25+
26+
- name: Build
27+
run: go build ./...
28+
29+
- name: Test
30+
run: |
31+
go test -coverprofile=coverage.out $(go list ./... | grep -v /tests/e2e)
32+
go tool cover -func=coverage.out

0 commit comments

Comments
 (0)