test: 修复测试依赖本地网络环境和权限问题 #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build-test | |
| on: [pull_request, push] | |
| jobs: | |
| run: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: "^1.16" | |
| - name: check fmt | |
| run: | | |
| make fmt-check | |
| - name: vet | |
| run: | | |
| make vet | |
| - name: test | |
| run: | | |
| sudo make test | |
| - name: build | |
| run: | | |
| make |