diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 735e02d6..ad959097 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 42b1bc42..d1b1479d 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