seperate step

This commit is contained in:
Florian Forster 2019-11-15 15:45:21 +01:00
parent a52468a167
commit ae4e8d7703
No known key found for this signature in database
GPG key ID: B03784B4B09FB794

View file

@ -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