Skip to content

Commit

Permalink
Merge pull request reviewdog#1271 from reviewdog/bump-go1.19
Browse files Browse the repository at this point in the history
bump Go 1.19
  • Loading branch information
haya14busa authored Sep 4, 2022
2 parents 8b36d64 + f24559e commit 7ea86ef
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-doghouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fetch-depth: 50 # Need git history for testing.
- uses: actions/setup-go@v3
with:
go-version: 1.15
go-version: '1.15'
- run: go test -v -race ./...
deploy:
permissions:
Expand Down
19 changes: 3 additions & 16 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,14 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: actions/setup-go@v3
with:
go-version: 1.17

- uses: actions/checkout@v3
with:
fetch-depth: 50 # Need git history for testing.

# https://github.com/actions/cache/blob/master/examples.md#go---modules
- name: Cache Go Modules
id: cache
uses: actions/cache@v3
- uses: actions/setup-go@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download Go Modules
if: steps.cache.outputs.cache-hit != 'true'
run: go mod download
go-version: '1.19'
cache: true

- name: Test
run: go test -v -race -coverpkg=./... -coverprofile=coverage.txt ./...
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
# Setup Go for building reviewdog binary.
- uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: '1.19'
cache: true

# Test goreleaser if the tag is empty.
- name: Test goreleaser
Expand Down
27 changes: 8 additions & 19 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ jobs:
name: reviewdog (github-check)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
go-version: 1.17

- uses: actions/checkout@v3
go-version: '1.x'
cache: true

- name: Install linters
run: go install golang.org/x/lint/golint@latest
Expand Down Expand Up @@ -56,25 +57,12 @@ jobs:
name: reviewdog on Pull Request
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.17

- uses: actions/checkout@v3

# https://github.com/actions/cache/blob/master/examples.md#go---modules
- name: Cache Go Modules
id: cache
uses: actions/cache@v3
- uses: actions/setup-go@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download Go Modules
if: steps.cache.outputs.cache-hit != 'true'
run: go mod download
go-version: '1.x'
cache: true

- name: Install linters
run: go install golang.org/x/lint/golint@latest
Expand Down Expand Up @@ -204,6 +192,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: '1.x'
cache: true
- uses: reviewdog/action-staticcheck@v1
with:
github_token: ${{ secrets.github_token }}
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
module github.com/reviewdog/reviewdog

go 1.18
go 1.19

require (
cloud.google.com/go v0.102.1 // indirect
cloud.google.com/go/compute v1.9.0
cloud.google.com/go/datastore v1.8.0
cloud.google.com/go/monitoring v1.4.0 // indirect
cloud.google.com/go/trace v1.2.0 // indirect
Expand Down Expand Up @@ -32,8 +33,6 @@ require (
gopkg.in/yaml.v2 v2.4.0
)

require cloud.google.com/go/compute v1.9.0

require (
github.com/aws/aws-sdk-go v1.43.31 // indirect
github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect
Expand Down

0 comments on commit 7ea86ef

Please sign in to comment.