diff --git a/.github/actions/setup-go/actions.yaml b/.github/actions/setup-go/action.yaml similarity index 95% rename from .github/actions/setup-go/actions.yaml rename to .github/actions/setup-go/action.yaml index c9efe6be8a..227b7fd248 100644 --- a/.github/actions/setup-go/actions.yaml +++ b/.github/actions/setup-go/action.yaml @@ -10,6 +10,7 @@ runs: - name: Prepare for go cache if: ${{ github.ref != 'refs/heads/master' }} + shell: bash run: | echo "GO_CACHE=$(go env GOCACHE)" | tee -a "$GITHUB_ENV" echo "GO_MODCACHE=$(go env GOMODCACHE)" | tee -a "$GITHUB_ENV" diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index de8933c92c..824b4c5945 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -47,7 +47,7 @@ jobs: with: fetch-depth: 1 - name: Install Go - uses: .github/actions/setup-go + uses: ./.github/actions/setup-go - name: "Download k3s binary" uses: actions/download-artifact@v3 with: diff --git a/.github/workflows/unitcoverage.yaml b/.github/workflows/unitcoverage.yaml index 7cd7046ab8..5652280985 100644 --- a/.github/workflows/unitcoverage.yaml +++ b/.github/workflows/unitcoverage.yaml @@ -36,7 +36,7 @@ jobs: with: fetch-depth: 1 - name: Install Go - uses: .github/actions/setup-go + uses: ./.github/actions/setup-go - name: Run Unit Tests run: | go test -coverpkg=./... -coverprofile=coverage.out ./pkg/... -run Unit