Skip to content
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

chore(ci): Use latest minor version of golang in ci workflows #4840

Merged
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
7 changes: 4 additions & 3 deletions .github/actions/automatic-updates/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@ inputs:
type: string
secretGithubToken:
required: true
goVersion:
goVersionFile:
required: true
type: string

runs:
using: "composite"
steps:
- name: Install Go ${{ inputs.goVersion }}
- name: Install Go ${{ inputs.goVersionFile }}
uses: actions/setup-go@v4
with:
go-version: ${{ inputs.goVersion }}
go-version-file: ${{ inputs.goVersionFile }}
check-latest: true
- name: Generate changelog
uses: ./.github/actions/changelog
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/kamel-prepare-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ runs:
uses: actions/setup-go@v4
if: ${{ env.KAMEL_PREPARE_ENV != 'true' }}
with:
go-version: 1.20.x
go-version-file: 'go.mod'
check-latest: true

- name: (Re-)install kustomize
shell: bash
Expand Down
7 changes: 4 additions & 3 deletions .github/actions/release-nightly/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: release-nightly
description: 'action used to release nightly'

inputs:
goVersion:
goVersionFile:
required: true
type: string
javaVersion:
Expand All @@ -46,10 +46,11 @@ runs:
with:
java-version: ${{ inputs.javaVersion }}
distribution: "temurin"
- name: Install Go ${{ inputs.goVersion }}
- name: Install Go ${{ inputs.goVersionFile }}
uses: actions/setup-go@v4
with:
go-version: ${{ inputs.goVersion }}
go-version-file: ${{ inputs.goVersionFile }}
check-latest: true
- name: Common smoke tests
uses: ./.github/actions/e2e-common
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version-file: 'go.mod'
check-latest: true

- name: Prepare repo configuration
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-automatic-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
with:
branch-ref: ${{ matrix.ref-branch }}
secretGithubToken: ${{ secrets.GITHUB_TOKEN }}
goVersion: "1.20.x"
goVersionFile: "go.mod"
2 changes: 1 addition & 1 deletion .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Release nightly ${{ matrix.ref-branch }} branch
uses: ./.github/actions/release-nightly
with:
goVersion: "1.20.x"
goVersionFile: "go.mod"
javaVersion: "17"
secretE2ECluster: ${{ secrets.E2E_CLUSTER_CONFIG }}
secretE2EKube: ${{ secrets.E2E_KUBE_CONFIG }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version-file: 'go.mod'
check-latest: true
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version-file: 'go.mod'
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
env:
Expand Down
Loading