Skip to content

Commit 7002e0c

Browse files
committed
Add a workflow to run unit tests.
1 parent 5127a1a commit 7002e0c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test
2+
3+
# run `go test ./...` on every push and every pull request
4+
5+
on: [push, pull_request]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Setup Go
14+
uses: actions/setup-go@v5
15+
with:
16+
go-version: stable
17+
- name: Install dependencies
18+
run: go mod tidy
19+
- name: Build
20+
run: go build -v ./...
21+
- name: Test
22+
run: go test ./...

0 commit comments

Comments
 (0)