From bc973eb3a1fc6265a6e2668a51212aa5d0353835 Mon Sep 17 00:00:00 2001 From: Yonghwan SO Date: Tue, 10 May 2022 20:24:39 +0900 Subject: [PATCH] preparing go1.18 support --- .github/workflows/tests.yml | 33 +++++++++++++++++++-------------- go.mod | 4 ++-- go.sum | 4 ++-- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2ea3333..fcf4efd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,22 +4,27 @@ on: branches: - main pull_request: -jobs: - tests-on: - name: ${{matrix.go-version}} ${{matrix.os}} +jobs: + tests-off: + name: ${{ matrix.os }} - Go v${{ matrix.go-version }} runs-on: ${{ matrix.os }} strategy: matrix: - go-version: [1.16.x, 1.17.x] - os: [macos-latest, windows-latest, ubuntu-latest] + go-version: + - "1.16.x" + - "1.17.x" + - "1.18.x" + os: + - "macos-latest" + - "windows-latest" + - "ubuntu-latest" steps: - - name: Checkout Code - uses: actions/checkout@v2 - with: - fetch-depth: 1 - - name: Test - run: | - go test -race ./... - - + - uses: actions/checkout@v3 + - name: Setup Go ${{ matrix.go }} + uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go-version }} + - name: Tests + run: | + go test -race ./... diff --git a/go.mod b/go.mod index 3ac0744..83d2244 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/gobuffalo/flect -go 1.13 +go 1.16 -require github.com/stretchr/testify v1.7.0 +require github.com/stretchr/testify v1.7.1 diff --git a/go.sum b/go.sum index acb88a4..2dca7c9 100644 --- a/go.sum +++ b/go.sum @@ -3,8 +3,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=