Skip to content

Commit 0dd53e1

Browse files
committed
feat: go test ci
1 parent 139f630 commit 0dd53e1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/tests.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Go Format and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
go:
13+
name: Run Go Format and Test
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v4
22+
with:
23+
go-version: '1.22.6'
24+
25+
- name: Go Format
26+
run: go fmt ./...
27+
28+
- name: Run Go Tests
29+
run: go test -v ./...

0 commit comments

Comments
 (0)