Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@ on:
push:
branches:
- master
paths-ignore:
- .github/**
- .gitignore
- .whitesource
- codecov.yml
- README.md
pull_request:
paths-ignore:
- .github/**
- .gitignore
- .whitesource
- codecov.yml
- README.md

jobs:
build:
Expand All @@ -13,14 +25,14 @@ jobs:
fail-fast: false
matrix:
include:
- go: 1.11.9
build-with: false
- go: 1.13.14
- go: 1.15
build-with: true
- go: 1.14.6
- go: 1.16
build-with: false
continue-on-error: ${{ matrix.build-with == false }}
name: Build with ${{ matrix.go }}
env:
GO111MODULE: on

steps:
- name: Set up Go
Expand All @@ -32,12 +44,10 @@ jobs:
uses: actions/checkout@v2

- name: Vet
run: |
go vet ./...
run: go vet ./...

- name: Test
run: |
go test -vet=off -race -coverprofile=coverage.txt -covermode=atomic ./...
run: go test -vet=off -race -coverprofile=coverage.txt -covermode=atomic ./...

- name: Upload code coverage report
if: matrix.build-with == true
Expand Down
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
default:
threshold: 15%
patch: off
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/VividCortex/multitick

go 1.12