seperate step
This commit is contained in:
parent
a52468a167
commit
ae4e8d7703
1 changed files with 16 additions and 2 deletions
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
|
@ -6,7 +6,21 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
go: ['1.11', '1.12', '1.13']
|
||||
name: Go ${{ matrix.go }} sample
|
||||
name: Go ${{ matrix.go }} test
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
- run: go run main.go
|
||||
build:
|
||||
runs-on: ubuntu-18.04
|
||||
needs: test
|
||||
strategy:
|
||||
matrix:
|
||||
go: ['1.11', '1.12', '1.13']
|
||||
name: Go ${{ matrix.go }} build
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Setup go
|
||||
|
@ -16,7 +30,7 @@ jobs:
|
|||
- run: go run main.go
|
||||
release:
|
||||
runs-on: ubuntu-18.04
|
||||
needs: test
|
||||
needs: [test, build]
|
||||
steps:
|
||||
- name: Semantic Release
|
||||
uses: cycjimmy/semantic-release-action@v2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue