测试 go mod 兼容

This commit is contained in:
naiba 2020-12-13 11:01:43 +08:00
parent dbdb0c412c
commit 6e9713a983
2 changed files with 8 additions and 3 deletions

View File

@ -16,6 +16,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Go latest version
uses: actions/setup-go@v2
- run: |
go mod vendor
- name: Set up Go 1.10.8
uses: actions/setup-go@v2
with:
go-version: 1.10.8
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
if: startsWith(github.ref, 'refs/tags/')

View File

@ -1,6 +1,3 @@
before:
hooks:
- go mod tidy -v
builds:
- id: nezha-agent
env: