Skip to content

Commit 14d38a6

Browse files
committed
Add workflows
1 parent 0f86c3d commit 14d38a6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Go
17+
uses: actions/setup-go@v6
18+
with:
19+
go-version-file: './go.mod'
20+
- name: Install gotestsum
21+
run: go install gotest.tools/gotestsum@latest
22+
- name: Build
23+
run: go build -v ./...
24+
- name: Test
25+
run: gotestsum --format testname -- -v ./...

0 commit comments

Comments
 (0)