Skip to content

Commit fe1ff67

Browse files
Use Go modules (#21)
- Init Go modules - Update GitHub Actions build workflow
1 parent c8fd171 commit fe1ff67

3 files changed

Lines changed: 27 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,19 @@ on:
44
push:
55
branches:
66
- master
7+
paths-ignore:
8+
- .github/**
9+
- .gitignore
10+
- .whitesource
11+
- codecov.yml
12+
- README.md
713
pull_request:
14+
paths-ignore:
15+
- .github/**
16+
- .gitignore
17+
- .whitesource
18+
- codecov.yml
19+
- README.md
820

921
jobs:
1022
build:
@@ -13,14 +25,14 @@ jobs:
1325
fail-fast: false
1426
matrix:
1527
include:
16-
- go: 1.11.9
17-
build-with: false
18-
- go: 1.13.14
28+
- go: 1.15
1929
build-with: true
20-
- go: 1.14.6
30+
- go: 1.16
2131
build-with: false
2232
continue-on-error: ${{ matrix.build-with == false }}
2333
name: Build with ${{ matrix.go }}
34+
env:
35+
GO111MODULE: on
2436

2537
steps:
2638
- name: Set up Go
@@ -32,12 +44,10 @@ jobs:
3244
uses: actions/checkout@v2
3345

3446
- name: Vet
35-
run: |
36-
go vet ./...
47+
run: go vet ./...
3748

3849
- name: Test
39-
run: |
40-
go test -vet=off -race -coverprofile=coverage.txt -covermode=atomic ./...
50+
run: go test -vet=off -race -coverprofile=coverage.txt -covermode=atomic ./...
4151

4252
- name: Upload code coverage report
4353
if: matrix.build-with == true

codecov.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
threshold: 15%
6+
patch: off

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/VividCortex/multitick
2+
3+
go 1.12

0 commit comments

Comments
 (0)