Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Go 1.18 #72

Merged
merged 7 commits into from
Jul 9, 2022
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our GHA recommendations guide has a section on pinning actions to SHAs, for security purposes. Admittedly, the actions/ actions are less likely to be affected, but this workflow also uses some workflows developed by third-parties, for which I'd definitely recommend pinning them. It's totally fine to do this in a follow-up PR.

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/[email protected].6
uses: jandelgado/[email protected].9
- name: Coveralls
uses: coverallsapp/[email protected].2
uses: coverallsapp/[email protected].3
andrerfcsantos marked this conversation as resolved.
Show resolved Hide resolved
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module conditionals

go 1.17
go 1.18
2 changes: 1 addition & 1 deletion testrunner/testdata/practice/broken/go.mod
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gigasecond

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

go 1.17
go 1.18
2 changes: 1 addition & 1 deletion testrunner/testdata/practice/gigasecond/go.mod
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gigasecond

go 1.17
go 1.18
2 changes: 1 addition & 1 deletion testrunner/testdata/practice/passing/go.mod
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module gigasecond

go 1.17
go 1.18