Skip to content

Commit

Permalink
Get go version for setup-go action from go.mod file
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrove-oss authored and openshift-merge-bot[bot] committed Apr 19, 2024
1 parent 7c64408 commit b90451c
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/component_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Set Go
uses: actions/setup-go@v5
with:
go-version: v1.20
go-version-file: './go.mod'

- name: Run component tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Set Go
uses: actions/setup-go@v5
with:
go-version: v1.20
go-version-file: './go.mod'

- name: Set up gotestfmt
uses: gotesttools/gotestfmt-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mnist-job-test-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set Go
uses: actions/setup-go@v5
with:
go-version: v1.20
go-version-file: './go.mod'

- name: Login to Quay.io
id: podman-login-quay
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/olm_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Set Go
uses: actions/setup-go@v5
with:
go-version: v1.20
go-version-file: './go.mod'

- name: Set up gotestfmt
uses: gotesttools/gotestfmt-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/operator-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set Go
uses: actions/setup-go@v5
with:
go-version: v1.20
go-version-file: './go.mod'

- name: Login to Quay.io
id: podman-login-quay
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set Go
uses: actions/setup-go@v5
with:
go-version: v1.20
go-version-file: './go.mod'

- name: Activate cache
uses: actions/cache@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Set Go
uses: actions/setup-go@v5
with:
go-version: v1.20
go-version-file: './go.mod'

- name: Verify that release doesn't exist yet
shell: bash {0}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Set Go
uses: actions/setup-go@v5
with:
go-version: v1.20
go-version-file: './go.mod'

- name: Activate cache
uses: actions/cache@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify_generated_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set Go
uses: actions/setup-go@v5
with:
go-version: v1.20
go-version-file: './go.mod'
- name: Verify that imports are organized
run: make verify-imports

Expand All @@ -35,6 +35,6 @@ jobs:
- name: Set Go
uses: actions/setup-go@v5
with:
go-version: v1.20
go-version-file: './go.mod'
- name: Verify that the latest WebhookConfigurations, ClusterRoles, and CustomResourceDefinitions have been generated
run: make manifests && git diff --exit-code

0 comments on commit b90451c

Please sign in to comment.