kv | 4e456d8 | 2020-08-17 21:12:34 +0800 | [diff] [blame] | 1 | name: API CI |
2 | |||||
3 | on: | ||||
4 | push: | ||||
5 | branches: | ||||
6 | - master | ||||
kv | 4e456d8 | 2020-08-17 21:12:34 +0800 | [diff] [blame] | 7 | pull_request: |
8 | branches: | ||||
9 | - master | ||||
10 | |||||
11 | jobs: | ||||
12 | |||||
13 | run-test: | ||||
14 | runs-on: ubuntu-latest | ||||
15 | |||||
16 | steps: | ||||
17 | - uses: actions/checkout@v2 | ||||
18 | |||||
19 | - name: setup go | ||||
20 | uses: actions/setup-go@v1 | ||||
21 | with: | ||||
22 | go-version: '1.13' | ||||
23 | |||||
24 | - name: run test | ||||
25 | working-directory: ./ | ||||
26 | run: | | ||||
27 | go test ./... | ||||
28 |