Skip to content

Commit

Permalink
chore(ci): Use project defined golang version in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer committed Oct 23, 2023
1 parent cec7153 commit fb88109
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/actions/automatic-updates/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ 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
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/kamel-prepare-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ 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
Expand Down
6 changes: 3 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,10 @@ 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
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
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,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: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down

0 comments on commit fb88109

Please sign in to comment.