Skip to content

Commit

Permalink
update to go 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksnyder committed Dec 3, 2023
1 parent f71426f commit 863dedf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
2 changes: 1 addition & 1 deletion v2/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 863dedf

Please sign in to comment.