Skip to content

Commit 625ecaf

Browse files
committed
ci: add go test workflow
1 parent afe135d commit 625ecaf

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/go-test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Go 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+
- uses: actions/checkout@v5
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version-file: "go.mod"
21+
cache: true
22+
23+
- name: Install dependencies
24+
run: go mod download
25+
26+
- name: Run tests
27+
run: go test -v ./...

0 commit comments

Comments
 (0)