Skip to content

Commit b9b7a9c

Browse files
authored
Merge pull request #4 from wdhongtw/chore-ci
Add CI description file
2 parents 0a9ceb7 + 45f8fd4 commit b9b7a9c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: check-code
2+
3+
on:
4+
push:
5+
branches: [ "*" ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
11+
"check":
12+
runs-on: ubuntu-24.04
13+
steps:
14+
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: '1.22'
22+
23+
- name: Run tests
24+
run: go test -v ./...
25+
26+
- name: Run linter
27+
run: go vet ./...

0 commit comments

Comments
 (0)