Skip to content

Commit

Permalink
upgrade go mod and workflow (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
abahmed authored Mar 3, 2021
1 parent fa35047 commit 410386d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/gogearbox/gearbox

go 1.14
go 1.16

require (
github.com/json-iterator/go v1.1.10
Expand Down

0 comments on commit 410386d

Please sign in to comment.