change to matrix build

This commit is contained in:
Florian Forster 2019-11-15 14:23:29 +01:00
parent a91607b4e1
commit 27a9c8fdcb
No known key found for this signature in database
GPG key ID: B03784B4B09FB794
2 changed files with 15 additions and 17 deletions

View file

@ -1,20 +1,16 @@
name: Test
on:
push:
branches:
- !master
on: push
jobs:
release:
runs-on: ubuntu-18.04
build:
runs-on: ubuntu-108.04
strategy:
matrix:
go: ['1.11', '1.12', '1.13']
name: Go ${{ matrix.go }} sample
steps:
- name: Source checkout
uses: actions/checkout@v1
- uses: actions/checkout@master
- name: Setup go
uses: actions/setup-go@v1
with:
fetch-depth: 1
- name: Release
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Insert Go test & Build Here" ## Insert Go test & Build Here
npx semantic-release
go-version: ${{ matrix.go }}
- run: echo "i am groot"

2
.gitignore vendored
View file

@ -10,3 +10,5 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
.DS_Store