chore(deps): update go version to 1.18 (#1363)

Co-authored-by: nils måsén <nils@piksel.se>
This commit is contained in:
Jauder Ho 2022-09-04 04:56:29 -07:00 committed by GitHub
parent 964879d228
commit e04a107694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 60 additions and 334 deletions

View file

@ -18,20 +18,17 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
- name: Install linter
run: |
go get -u golang.org/x/lint/golint
- name: Lint files
run: |
golint -set_exit_status ./...
go-version: 1.18.x
- uses: dominikh/staticcheck-action@v1.2.0
with:
version: "2022.1.1"
test:
name: Test
strategy:
fail-fast: false
matrix:
go-version:
- 1.15.x
- 1.18.x
platform:
- macos-latest
- windows-latest
@ -45,7 +42,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
go-version: 1.18.x
- name: Run tests
run: |
go test -v -coverprofile coverage.out -covermode atomic ./...
@ -64,7 +61,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
go-version: 1.18.x
- name: Build
uses: goreleaser/goreleaser-action@v3
with:

View file

@ -14,7 +14,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15
go-version: 1.18
- name: Build
run: ./build.sh
test:
@ -24,7 +24,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15
go-version: 1.18
- name: Test
run: go test -v -coverprofile coverage.out -covermode atomic ./...
- name: Publish coverage

View file

@ -21,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
go-version: 1.18.x
- name: Install linter
run: |
go get -u golang.org/x/lint/golint
@ -34,7 +34,7 @@ jobs:
strategy:
matrix:
go-version:
- 1.15.x
- 1.18.x
platform:
- ubuntu-latest
- macos-latest
@ -48,7 +48,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
go-version: 1.18.x
- name: Run tests
run: |
go test ./... -coverprofile coverage.out
@ -70,7 +70,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
go-version: 1.18.x
- name: Login to Docker Hub
uses: docker/login-action@v2
with: