From 863dedf99300a4983dad5680534055de3fe122ec Mon Sep 17 00:00:00 2001 From: Nick Snyder Date: Sun, 3 Dec 2023 00:14:17 -0800 Subject: [PATCH] update to go 1.16 --- .github/workflows/build.yml | 13 ++++--------- v2/go.mod | 2 +- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 735e02d..ad95909 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,24 +25,19 @@ jobs: run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... - name: Upload coverage uses: codecov/codecov-action@v1 - build_1_12: - name: Build with Go 1.12.17 + build_1_16: + name: Build with Go 1.16 runs-on: ubuntu-latest if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request' steps: - name: Install Go uses: actions/setup-go@v4 with: - go-version: '1.12.17' + go-version: '1.16' - name: Git checkout uses: actions/checkout@v3 - with: - path: gopath/src/github.com/nicksnyder/go-i18n - name: Build and test - working-directory: gopath/src/github.com/nicksnyder/go-i18n/v2 - env: - GOPATH: ${{ github.workspace }}/gopath - GO111MODULE: on + working-directory: v2 run: | go get ./... go test -race ./... diff --git a/v2/go.mod b/v2/go.mod index 42b1bc4..d1b1479 100644 --- a/v2/go.mod +++ b/v2/go.mod @@ -1,6 +1,6 @@ module github.com/nicksnyder/go-i18n/v2 -go 1.12 +go 1.16 require ( github.com/BurntSushi/toml v1.3.2