From fe1ff67aa7c83c69d8a9a80617f4f20759125bd5 Mon Sep 17 00:00:00 2001 From: Peter Matseykanets Date: Mon, 26 Apr 2021 16:51:11 -0400 Subject: [PATCH] Use Go modules (#21) - Init Go modules - Update GitHub Actions build workflow --- .github/workflows/build.yml | 26 ++++++++++++++++++-------- codecov.yml | 6 ++++++ go.mod | 3 +++ 3 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 codecov.yml create mode 100644 go.mod diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 810b02a..a63f405 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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 @@ -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 diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..0d36d90 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,6 @@ +coverage: + status: + project: + default: + threshold: 15% + patch: off diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..e97b4bf --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/VividCortex/multitick + +go 1.12