Skip to content

Commit

Permalink
Update to Go 1.18 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedreviljoen committed Jul 9, 2022
1 parent 9f46a15 commit 1b711ce
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/test.yml
Expand Up @@ -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

Expand All @@ -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
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,3 +1,3 @@
module github.com/exercism/go-test-runner

go 1.17
go 1.18
2 changes: 1 addition & 1 deletion testrunner/testdata/concept/conditionals/go.mod
@@ -1,3 +1,3 @@
module conditionals

go 1.17
go 1.18
2 changes: 1 addition & 1 deletion testrunner/testdata/practice/broken/go.mod
@@ -1,3 +1,3 @@
module gigasecond

go 1.17
go 1.18
2 changes: 1 addition & 1 deletion testrunner/testdata/practice/broken_import/go.mod
@@ -1,3 +1,3 @@
module gigasecond

go 1.17
go 1.18
2 changes: 1 addition & 1 deletion testrunner/testdata/practice/failing/go.mod
@@ -1,3 +1,3 @@
module gigasecond

go 1.17
go 1.18
2 changes: 1 addition & 1 deletion testrunner/testdata/practice/gigasecond/go.mod
@@ -1,3 +1,3 @@
module gigasecond

go 1.17
go 1.18
2 changes: 1 addition & 1 deletion testrunner/testdata/practice/missing_func/go.mod
@@ -1,3 +1,3 @@
module gigasecond

go 1.17
go 1.18
2 changes: 1 addition & 1 deletion testrunner/testdata/practice/passing/go.mod
@@ -1,3 +1,3 @@
module gigasecond

go 1.17
go 1.18
2 changes: 1 addition & 1 deletion testrunner/testdata/practice/pkg_level_error/go.mod
@@ -1,4 +1,4 @@
module pov

go 1.17
go 1.18

2 changes: 1 addition & 1 deletion testrunner/testdata/practice/runtime_error/go.mod
@@ -1,3 +1,3 @@
module gigasecond

go 1.17
go 1.18

0 comments on commit 1b711ce

Please sign in to comment.