diff --git a/.github/workflows/arc-validate-chart.yaml b/.github/workflows/arc-validate-chart.yaml index 6adccc3e65..ed3b3ac37f 100644 --- a/.github/workflows/arc-validate-chart.yaml +++ b/.github/workflows/arc-validate-chart.yaml @@ -65,7 +65,7 @@ jobs: python-version: '3.7' - name: Set up chart-testing - uses: helm/chart-testing-action@v2.3.1 + uses: helm/chart-testing-action@v2.4.0 - name: Run chart-testing (list-changed) id: list-changed diff --git a/.github/workflows/gha-validate-chart.yaml b/.github/workflows/gha-validate-chart.yaml index 5b1b456727..d616d9ac62 100644 --- a/.github/workflows/gha-validate-chart.yaml +++ b/.github/workflows/gha-validate-chart.yaml @@ -61,23 +61,7 @@ jobs: python-version: '3.7' - name: Set up chart-testing - uses: helm/chart-testing-action@v2.3.1 - - - name: Set up latest version chart-testing - run: | - echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list - sudo apt update - sudo apt install goreleaser - git clone https://github.com/helm/chart-testing - cd chart-testing - unset CT_CONFIG_DIR - goreleaser build --clean --skip-validate - ./dist/chart-testing_linux_amd64_v1/ct version - echo 'Adding ct directory to PATH...' - echo "$RUNNER_TEMP/chart-testing/dist/chart-testing_linux_amd64_v1" >> "$GITHUB_PATH" - echo 'Setting CT_CONFIG_DIR...' - echo "CT_CONFIG_DIR=$RUNNER_TEMP/chart-testing/etc" >> "$GITHUB_ENV" - working-directory: ${{ runner.temp }} + uses: helm/chart-testing-action@v2.4.0 - name: Run chart-testing (list-changed) id: list-changed diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 153bf8b3e3..6c13bac1be 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -8,7 +8,6 @@ on: - '**.go' - 'go.mod' - 'go.sum' - pull_request: paths: - '.github/workflows/go.yaml' @@ -72,9 +71,11 @@ jobs: run: git diff --exit-code - name: Install kubebuilder run: | - curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.3.2/kubebuilder_2.3.2_linux_amd64.tar.gz - tar zxvf kubebuilder_2.3.2_linux_amd64.tar.gz - sudo mv kubebuilder_2.3.2_linux_amd64 /usr/local/kubebuilder + curl -D headers.txt -fsL "https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-1.26.1-linux-amd64.tar.gz" -o kubebuilder-tools + echo "$(grep -i etag headers.txt -m 1 | cut -d'"' -f2) kubebuilder-tools" > sum + md5sum -c sum + tar -zvxf kubebuilder-tools + sudo mv kubebuilder /usr/local/ - name: Run go tests run: | go test -short `go list ./... | grep -v ./test_e2e_arc`