From 410386daa6125b50897797ccb9f6dabdef0c2655 Mon Sep 17 00:00:00 2001 From: Abdelrahman Ahmed <16365652+abahmed@users.noreply.github.com> Date: Wed, 3 Mar 2021 15:46:35 +0200 Subject: [PATCH] upgrade go mod and workflow (#83) --- .github/workflows/test_and_build.yml | 6 ++---- README.md | 2 +- go.mod | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test_and_build.yml b/.github/workflows/test_and_build.yml index 3492066..59cfee4 100644 --- a/.github/workflows/test_and_build.yml +++ b/.github/workflows/test_and_build.yml @@ -9,15 +9,13 @@ on: env: GO111MODULE: on - # For versions earlier than Go 1.13 - GOPROXY: https://proxy.golang.org ACTIONS_ALLOW_UNSECURE_COMMANDS: true jobs: test_and_build: strategy: matrix: - go-version: [1.14.x, 1.13.x, 1.12.x, 1.11.x] + go-version: [1.16.x, 1.15.x, 1.14.x] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: @@ -52,7 +50,7 @@ jobs: run: go test -race --coverprofile=coverage.txt --covermode=atomic ./... - name: Upload coverage to Codecov - if: success() && matrix.go-version == '1.14.x' && matrix.platform == 'ubuntu-latest' && github.ref == 'refs/heads/master' + if: success() && matrix.go-version == '1.16.x' && matrix.platform == 'ubuntu-latest' && github.ref == 'refs/heads/master' uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index 5efdbf5..b65baa1 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ ### Supported Go versions & installation -:gear: gearbox requires version `1.11` or higher of Go ([Download Go](https://golang.org/dl/)) +:gear: gearbox requires version `1.14` or higher of Go ([Download Go](https://golang.org/dl/)) Just use [go get](https://golang.org/cmd/go/#hdr-Add_dependencies_to_current_module_and_install_them) to download and install gearbox diff --git a/go.mod b/go.mod index 49d16ec..90f0272 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/gogearbox/gearbox -go 1.14 +go 1.16 require ( github.com/json-iterator/go v1.1.10