diff --git a/.github/workflows/deploy-doghouse.yml b/.github/workflows/deploy-doghouse.yml index 39a4abcd92..c85780f2b8 100644 --- a/.github/workflows/deploy-doghouse.yml +++ b/.github/workflows/deploy-doghouse.yml @@ -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: diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b74d5db7d4..22cebff802 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 ./... diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e2830b979..c87d9a8dc0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index b6f27f7734..0bc47c3413 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -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 @@ -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 @@ -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 }} diff --git a/go.mod b/go.mod index 2a74c4e54a..345a980358 100644 --- a/go.mod +++ b/go.mod @@ -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 @@ -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