Skip to content

Commit 487e8c9

Browse files
Use Go modules (#26)
- Init Go modules - Update GitHub Actions build workflow
1 parent 507017d commit 487e8c9

File tree

3 files changed

+27
-10
lines changed

3 files changed

+27
-10
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 10 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,16 +25,14 @@ jobs:
1325
fail-fast: false
1426
matrix:
1527
include:
16-
- go: 1.12
17-
build-with: true
18-
- go: 1.13
19-
build-with: false
20-
- go: 1.14
21-
build-with: false
2228
- go: 1.15
29+
build-with: true
30+
- go: 1.16
2331
build-with: false
2432
continue-on-error: ${{ matrix.build-with == false }}
2533
name: Build with ${{ matrix.go }}
34+
env:
35+
GO111MODULE: on
2636

2737
steps:
2838
- name: Set up Go
@@ -34,12 +44,10 @@ jobs:
3444
uses: actions/checkout@v2
3545

3646
- name: Vet
37-
run: |
38-
go vet ./...
47+
run: go vet ./...
3948

4049
- name: Test
41-
run: |
42-
go test -vet=off -race -coverprofile=coverage.txt -covermode=atomic ./...
50+
run: go test -vet=off -race -coverprofile=coverage.txt -covermode=atomic ./...
4351

4452
- name: Upload code coverage report
4553
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/ewma
2+
3+
go 1.12

0 commit comments

Comments
 (0)