ci: fix issue in github action

This commit is contained in:
nadoo 2021-02-06 00:44:03 +08:00
parent 40aadf3e24
commit bf8e37c6df
2 changed files with 13 additions and 3 deletions

View File

@ -6,13 +6,18 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ 'tip', '1.16.0-rc1' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.0-rc1
stable: '!contains(${{ matrix.go-version }}, "beta") && !contains(${{ matrix.go-version }}, "rc")'
go-version: ${{ matrix.go-version }}
- name: Go Env
run: go env
- name: Test
@ -22,13 +27,18 @@ jobs:
name: Build
runs-on: ubuntu-latest
needs: [test]
strategy:
matrix:
go-version: [ 'tip', '1.16.0-rc1' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.0-rc1
stable: '!contains(${{ matrix.go-version }}, "beta") && !contains(${{ matrix.go-version }}, "rc")'
go-version: ${{ matrix.go-version }}
- name: Go Env
run: go env
- name: Build

View File

@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.0-rc1
go-version: 1.16.x
- name: Go Env
run: go env
- name: Run GoReleaser