Skip to content

Commit eaef416

Browse files
committed
ci: add go.yaml
1 parent c8a7f6c commit eaef416

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/go.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Go Test
2+
3+
on:
4+
push:
5+
branches:
6+
pull_request:
7+
branches:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v3
19+
with:
20+
go-version: 1.22
21+
22+
- name: Install dependencies
23+
run: go mod tidy
24+
25+
- name: Run tests
26+
run: go test ./...

0 commit comments

Comments
 (0)