From 8a761e58af048a02c758c7aeece20ab4dbf2a584 Mon Sep 17 00:00:00 2001 From: Gerald Morrison <67469729+morri-son@users.noreply.github.com> Date: Tue, 24 Oct 2023 10:19:51 +0200 Subject: [PATCH] adopt to go-version-file --- .github/workflows/components.yaml | 10 +++++----- .github/workflows/lint_and_test.yaml | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/components.yaml b/.github/workflows/components.yaml index 5e9fb0646f..73d06f9679 100644 --- a/.github/workflows/components.yaml +++ b/.github/workflows/components.yaml @@ -34,7 +34,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: 1.19.x + go-version-file: '${{ github.workspace }}/go.mod' - name: CTF run: | cd components/ocmcli @@ -60,7 +60,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: 1.19.x + go-version-file: '${{ github.workspace }}/go.mod' - name: CTF run: | cd components/helminstaller @@ -86,7 +86,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: 1.19.x + go-version-file: '${{ github.workspace }}/go.mod' - name: CTF run: | cd components/helmdemo @@ -112,7 +112,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: 1.19.x + go-version-file: '${{ github.workspace }}/go.mod' - name: CTF run: | cd components/subchartsdemo @@ -138,7 +138,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: 1.19.x + go-version-file: '${{ github.workspace }}/go.mod' - name: CTF run: | cd components/ecrplugin diff --git a/.github/workflows/lint_and_test.yaml b/.github/workflows/lint_and_test.yaml index 6dbadbdfe8..1a1cb513b7 100644 --- a/.github/workflows/lint_and_test.yaml +++ b/.github/workflows/lint_and_test.yaml @@ -34,7 +34,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: 1.19.x + go-version-file: '${{ github.workspace }}/go.mod' - name: Unit test run: | PATH=$PATH:$(go env GOPATH)/bin make build @@ -60,7 +60,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: 1.19.x + go-version-file: '${{ github.workspace }}/go.mod' - name: Install goimports run: | go install golang.org/x/tools/cmd/goimports@latest @@ -91,7 +91,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: 1.19.x + go-version-file: '${{ github.workspace }}/go.mod' - name: Generate DeepCopy run: | PATH=$PATH:$(go env GOPATH)/bin make generate-deepcopy