From 1b711ce322210b234e650039d046c52c751527fc Mon Sep 17 00:00:00 2001 From: Pedre Viljoen Date: Sun, 10 Jul 2022 00:14:50 +0200 Subject: [PATCH] Update to Go 1.18 (#72) --- .github/workflows/test.yml | 26 +++++++++---------- Dockerfile | 2 +- go.mod | 2 +- .../testdata/concept/conditionals/go.mod | 2 +- testrunner/testdata/practice/broken/go.mod | 2 +- .../testdata/practice/broken_import/go.mod | 2 +- testrunner/testdata/practice/failing/go.mod | 2 +- .../testdata/practice/gigasecond/go.mod | 2 +- .../testdata/practice/missing_func/go.mod | 2 +- testrunner/testdata/practice/passing/go.mod | 2 +- .../testdata/practice/pkg_level_error/go.mod | 2 +- .../testdata/practice/runtime_error/go.mod | 2 +- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 18a57e7..889c32a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,31 +8,31 @@ jobs: runs-on: ubuntu-latest steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.17.x + go-version: 1.18.x - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Run linters - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: - version: v1.43 + version: v1.46 test: strategy: matrix: - go-version: [1.17.x] + go-version: [1.18.x] # platform: [ubuntu-latest, macos-latest, windows-latest] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: - name: Install Go if: success() - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Run tests run: go test ./... -v -covermode=count @@ -41,18 +41,18 @@ jobs: steps: - name: Install Go if: success() - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.17.x + go-version: 1.18.x - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Calc coverage run: | go test ./... -v -covermode=count -coverprofile=coverage.out - name: Convert coverage.out to coverage.lcov - uses: jandelgado/gcov2lcov-action@v1.0.6 + uses: jandelgado/gcov2lcov-action@v1.0.9 - name: Coveralls - uses: coverallsapp/github-action@v1.1.2 + uses: coverallsapp/github-action@1.1.3 with: github-token: ${{ secrets.github_token }} path-to-lcov: coverage.lcov diff --git a/Dockerfile b/Dockerfile index 5a4dba5..15a9e36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.17-alpine3.14 +FROM golang:1.18-alpine3.15 # add addtional packages needed for the race detector to work RUN apk add --update build-base make diff --git a/go.mod b/go.mod index 88e2ae7..7f0089f 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/exercism/go-test-runner -go 1.17 +go 1.18 diff --git a/testrunner/testdata/concept/conditionals/go.mod b/testrunner/testdata/concept/conditionals/go.mod index c5868d0..ceac322 100644 --- a/testrunner/testdata/concept/conditionals/go.mod +++ b/testrunner/testdata/concept/conditionals/go.mod @@ -1,3 +1,3 @@ module conditionals -go 1.17 +go 1.18 diff --git a/testrunner/testdata/practice/broken/go.mod b/testrunner/testdata/practice/broken/go.mod index f7b380f..989fd97 100644 --- a/testrunner/testdata/practice/broken/go.mod +++ b/testrunner/testdata/practice/broken/go.mod @@ -1,3 +1,3 @@ module gigasecond -go 1.17 +go 1.18 diff --git a/testrunner/testdata/practice/broken_import/go.mod b/testrunner/testdata/practice/broken_import/go.mod index f7b380f..989fd97 100644 --- a/testrunner/testdata/practice/broken_import/go.mod +++ b/testrunner/testdata/practice/broken_import/go.mod @@ -1,3 +1,3 @@ module gigasecond -go 1.17 +go 1.18 diff --git a/testrunner/testdata/practice/failing/go.mod b/testrunner/testdata/practice/failing/go.mod index f7b380f..989fd97 100644 --- a/testrunner/testdata/practice/failing/go.mod +++ b/testrunner/testdata/practice/failing/go.mod @@ -1,3 +1,3 @@ module gigasecond -go 1.17 +go 1.18 diff --git a/testrunner/testdata/practice/gigasecond/go.mod b/testrunner/testdata/practice/gigasecond/go.mod index f7b380f..989fd97 100644 --- a/testrunner/testdata/practice/gigasecond/go.mod +++ b/testrunner/testdata/practice/gigasecond/go.mod @@ -1,3 +1,3 @@ module gigasecond -go 1.17 +go 1.18 diff --git a/testrunner/testdata/practice/missing_func/go.mod b/testrunner/testdata/practice/missing_func/go.mod index f7b380f..989fd97 100644 --- a/testrunner/testdata/practice/missing_func/go.mod +++ b/testrunner/testdata/practice/missing_func/go.mod @@ -1,3 +1,3 @@ module gigasecond -go 1.17 +go 1.18 diff --git a/testrunner/testdata/practice/passing/go.mod b/testrunner/testdata/practice/passing/go.mod index f7b380f..989fd97 100644 --- a/testrunner/testdata/practice/passing/go.mod +++ b/testrunner/testdata/practice/passing/go.mod @@ -1,3 +1,3 @@ module gigasecond -go 1.17 +go 1.18 diff --git a/testrunner/testdata/practice/pkg_level_error/go.mod b/testrunner/testdata/practice/pkg_level_error/go.mod index 8a0f257..f9c1a81 100644 --- a/testrunner/testdata/practice/pkg_level_error/go.mod +++ b/testrunner/testdata/practice/pkg_level_error/go.mod @@ -1,4 +1,4 @@ module pov -go 1.17 +go 1.18 diff --git a/testrunner/testdata/practice/runtime_error/go.mod b/testrunner/testdata/practice/runtime_error/go.mod index f7b380f..989fd97 100644 --- a/testrunner/testdata/practice/runtime_error/go.mod +++ b/testrunner/testdata/practice/runtime_error/go.mod @@ -1,3 +1,3 @@ module gigasecond -go 1.17 +go 1.18