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