Fix build workflow

This commit is contained in:
Christian Muehlhaeuser
2020-08-30 01:47:07 +02:00
parent 6c0e29c4da
commit 48fcb4b0c9
+3 -4
View File
@@ -1,7 +1,7 @@
name: build name: build
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
test: build:
strategy: strategy:
matrix: matrix:
go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x] go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x]
@@ -13,7 +13,6 @@ jobs:
COLORFGBG: "7;0" COLORFGBG: "7;0"
TERM: "xterm-256color" TERM: "xterm-256color"
steps: steps:
- name: Install Go - name: Install Go
uses: actions/setup-go@v1 uses: actions/setup-go@v1
with: with:
@@ -30,7 +29,7 @@ jobs:
- name: Test - name: Test
run: go test ./... run: go test ./...
if: matrix.platform != 'windows-latest' if: matrix.os != 'windows-latest'
- name: Coverage - name: Coverage
env: env:
@@ -39,4 +38,4 @@ jobs:
go test -race -covermode atomic -coverprofile=profile.cov ./... go test -race -covermode atomic -coverprofile=profile.cov ./...
GO111MODULE=off go get github.com/mattn/goveralls GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github $(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
if: matrix.go-version == '1.14.x' && matrix.platform == 'ubuntu-latest' if: matrix.go-version == '1.15.x' && matrix.os == 'ubuntu-latest'