Skip to content

Commit 85d2ad3

Browse files
committed
fix: add test pipeline
1 parent 8668461 commit 85d2ad3

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/test.yaml

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+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version-file: go.mod
22+
cache: true
23+
24+
- name: Download dependencies
25+
run: go mod download
26+
27+
- name: Run tests
28+
run: go test -v -race -coverprofile=coverage.out ./...
29+
30+
- name: Upload coverage
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: coverage
34+
path: coverage.out

0 commit comments

Comments
 (0)