add: test github actions

This commit is contained in:
zhshch2002
2022-05-24 11:17:32 +08:00
parent 69388c956e
commit d4a176f864
5 changed files with 231 additions and 20 deletions

17
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
on:
push:
pull_request:
name: Test
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: "1.18"
- name: Test
run: go test -v -coverprofile='coverage.out' -covermode=count ./...