Skip to content

Get go version for setup-go action from go.mod file #534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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