From 3f202328923eae2ecf80ea35e6d2fed42c040d94 Mon Sep 17 00:00:00 2001 From: Pasquale Congiusti Date: Mon, 11 Jul 2022 11:06:49 +0200 Subject: [PATCH] fix(ci): go 1.17 installation --- .github/actions/kamel-prepare-env/action.yml | 2 +- .github/workflows/build.yml | 5 ++++- .github/workflows/builder.yml | 5 ++++- .github/workflows/common.yml | 5 ++++- .github/workflows/install.yml | 5 ++++- .github/workflows/knative.yml | 5 ++++- .github/workflows/openshift.yml | 5 ++++- .github/workflows/upgrade.yml | 5 ++++- .github/workflows/validate.yml | 4 ++-- .github/workflows/verify-generate.yml | 3 +-- 10 files changed, 32 insertions(+), 12 deletions(-) diff --git a/.github/actions/kamel-prepare-env/action.yml b/.github/actions/kamel-prepare-env/action.yml index 45871e10b1..0204dfd4e7 100644 --- a/.github/actions/kamel-prepare-env/action.yml +++ b/.github/actions/kamel-prepare-env/action.yml @@ -75,7 +75,7 @@ runs: uses: actions/setup-go@v2 # Version 2 adds GOBIN to PATH if: ${{ env.KAMEL_PREPARE_ENV != 'true' }} with: - go-version: 1.16.x + go-version: 1.17.x - name: (Re-)install kustomize shell: bash diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 217b404c5c..035fcb0cb6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,6 +64,9 @@ jobs: with: persist-credentials: false submodules: recursive - + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.17.x - name: Execute Build Tests uses: ./.github/actions/e2e-build diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 1c9e5f8b34..db8f6e7202 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -75,7 +75,10 @@ jobs: with: persist-credentials: false submodules: recursive - + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.17.x - name: Convert input parameters to env vars shell: bash run: | diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index 4bdfb51d4b..b7edeea468 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -75,7 +75,10 @@ jobs: with: persist-credentials: false submodules: recursive - + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.17.x - name: Convert input parameters to env vars shell: bash run: | diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index a3a44f3344..948d4e72fd 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -74,7 +74,10 @@ jobs: with: persist-credentials: false submodules: recursive - + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.17.x - name: Convert input parameters to env vars shell: bash run: | diff --git a/.github/workflows/knative.yml b/.github/workflows/knative.yml index 0c3c5c5a50..2c681ef9b8 100644 --- a/.github/workflows/knative.yml +++ b/.github/workflows/knative.yml @@ -71,7 +71,10 @@ jobs: with: persist-credentials: false submodules: recursive - + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.17.x - name: Convert input parameters to env vars shell: bash run: | diff --git a/.github/workflows/openshift.yml b/.github/workflows/openshift.yml index a9d2eee105..700a8302dc 100644 --- a/.github/workflows/openshift.yml +++ b/.github/workflows/openshift.yml @@ -60,7 +60,10 @@ jobs: with: persist-credentials: false submodules: recursive - + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.17.x - id: prepare-env name: Prepare Test Environment uses: ./.github/actions/kamel-prepare-env diff --git a/.github/workflows/upgrade.yml b/.github/workflows/upgrade.yml index ce1dffaa96..8fd23c7aa4 100644 --- a/.github/workflows/upgrade.yml +++ b/.github/workflows/upgrade.yml @@ -71,7 +71,10 @@ jobs: with: persist-credentials: false submodules: recursive - + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.17.x - name: Convert input parameters to env vars shell: bash run: | diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index b635a84706..33c7927a0f 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -38,9 +38,9 @@ jobs: - name: Check out code uses: actions/checkout@v2 - name: Install Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v2 with: - go-version: 1.16.x + go-version: 1.17.x - name: golangci-lint uses: golangci/golangci-lint-action@v2 env: diff --git a/.github/workflows/verify-generate.yml b/.github/workflows/verify-generate.yml index ed66309c23..0fd6228301 100644 --- a/.github/workflows/verify-generate.yml +++ b/.github/workflows/verify-generate.yml @@ -60,9 +60,8 @@ jobs: - name: Check out code uses: actions/checkout@v2 - name: Install Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v2 with: - # make generate requires Go >=1.17 go-version: 1.17.x - name: Test generate shell: bash