Skip to content

Commit 642a122

Browse files
committed
Add GitHub Actions workflow for Go tests
Create .github/workflows/test.yml to run Go tests on push and pull_request. The job checks out the repo, sets up Go using actions/setup-go@v5 (version taken from go.mod with caching), and runs `go test ./...` on ubuntu-latest to provide CI test coverage.
1 parent 0d491b2 commit 642a122

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Go Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version-file: go.mod
22+
cache: true
23+
24+
- name: Run tests
25+
run: go test ./...

0 commit comments

Comments
 (0)