From e000badf8eb917f588c86a9601d15019dd4bb5fa Mon Sep 17 00:00:00 2001 From: Aoang Date: Sun, 14 Aug 2022 15:14:24 +0800 Subject: [PATCH 1/2] Run tests on Go 1.19 --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a93f058..b49573d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,7 +4,7 @@ jobs: test: strategy: matrix: - go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x] + go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x] os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: @@ -17,5 +17,5 @@ jobs: - name: Test run: go test -v -race ./... - name: Format - if: matrix.go-version == '1.18.x' + if: matrix.go-version == '1.19.x' run: diff -u <(echo -n) <(gofmt -d .) From c85e83a990c6eb103f318e3b89f37da962d5f06f Mon Sep 17 00:00:00 2001 From: Aoang Date: Sun, 14 Aug 2022 15:22:32 +0800 Subject: [PATCH 2/2] Format comment Finish the rest of the work for https://github.com/google/go-cmp/pull/304 --- cmp/cmpopts/util_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmp/cmpopts/util_test.go b/cmp/cmpopts/util_test.go index c2eaf0b..7adeb9b 100644 --- a/cmp/cmpopts/util_test.go +++ b/cmp/cmpopts/util_test.go @@ -1072,7 +1072,7 @@ func TestOptions(t *testing.T) { }, { label: "AcyclicTransformer", x: "this is a sentence", - y: "this is a sentence", + y: "this is a sentence", opts: []cmp.Option{ AcyclicTransformer("", strings.Fields), },