Skip to content

Commit

Permalink
chore(deps): bump actions/setup-go from 3 to 4 (#585)
Browse files Browse the repository at this point in the history
* chore(deps): bump actions/setup-go from 3 to 4

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: remove explicit go caching steps

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Patryk Małek <[email protected]>
  • Loading branch information
dependabot[bot] and pmalek authored Mar 16, 2023
1 parent d5af23d commit 6e8f47c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 69 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- name: setup golang
uses: actions/setup-go@v3
with:
go-version: '^1.19'

- name: checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: setup golang
uses: actions/setup-go@v4
with:
go-version: '^1.19'

- name: Run golangci-lint
uses: golangci/[email protected]
30 changes: 3 additions & 27 deletions .github/workflows/release-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,10 @@ jobs:
fetch-depth: 0

- name: setup golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '^1.19'

- name: cache go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-codegen-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-codegen-
- name: run unit tests
run: make test.unit

Expand Down Expand Up @@ -78,18 +70,10 @@ jobs:
fetch-depth: 0

- name: setup golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '^1.19'

- name: cache go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-codegen-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-codegen-
- name: run integration tests
run: make test.integration
env:
Expand Down Expand Up @@ -119,18 +103,10 @@ jobs:
fetch-depth: 0

- name: setup golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '^1.19'

- name: cache go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-codegen-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-codegen-
- name: run e2e tests
run: make test.e2e
env:
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,10 @@ jobs:
fetch-depth: 0

- name: setup golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '^1.19'

- name: cache go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-codegen-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-codegen-
# --------------------------------------------------------------------------
# Build & Upload Artifacts
# --------------------------------------------------------------------------
Expand Down
31 changes: 3 additions & 28 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,10 @@ jobs:
fetch-depth: 0

- name: setup golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '^1.19'

- name: cache go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-codegen-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-codegen-
- name: run unit tests
run: make test.unit

Expand Down Expand Up @@ -105,18 +97,10 @@ jobs:
password: ${{ secrets.PULP_PASSWORD }}

- name: setup golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '^1.19'

- name: cache go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-codegen-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-codegen-
- name: run integration test ${{ matrix.test }}
run: make test.integration
env:
Expand Down Expand Up @@ -166,19 +150,10 @@ jobs:

- name: setup golang
if: steps.detect_if_should_run.outputs.result == 'true'
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '^1.19'

- name: cache go modules
if: steps.detect_if_should_run.outputs.result == 'true'
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-codegen-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-codegen-
- name: run e2e tests
if: steps.detect_if_should_run.outputs.result == 'true'
run: make test.e2e
Expand Down

0 comments on commit 6e8f47c

Please sign in to comment.