Skip to content

Commit c7acfe3

Browse files
committed
ci: 增加github action
1 parent 9a6f4eb commit c7acfe3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/golang.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Go package
2+
3+
on: [ push ]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: Set up Go
13+
uses: actions/setup-go@v4
14+
with:
15+
go-version: '1.18'
16+
17+
- name: Build
18+
run: go build -v ./...
19+
20+
- name: Test
21+
run: go test -v ./...

0 commit comments

Comments
 (0)