Update loft utils for helm v4 #1381
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unit test | |
| on: | |
| release: | |
| types: [created] | |
| pull_request: | |
| branches: | |
| - main | |
| - v6 | |
| paths: | |
| - "**.go" | |
| - "!e2e/**" # exclude files from e2e tests | |
| - ".github/workflows/unit-tests.yaml" | |
| env: | |
| GO111MODULE: on | |
| GOFLAGS: -mod=vendor | |
| jobs: | |
| test-unit: | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest] | |
| name: unit-test-${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24" | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v1 | |
| - name: Uninstall Helm 3.x | |
| run: | | |
| HELM_PATH=$(which helm) | |
| if [ -f "$HELM_PATH" ]; then | |
| sudo rm "$HELM_PATH" | |
| echo "Helm removed from $HELM_PATH" | |
| else | |
| echo "Helm binary not found in standard paths." | |
| fi | |
| - name: Test | |
| run: ./hack/coverage.bash | |
| test-unit-windows: | |
| runs-on: windows-latest | |
| name: unit-test-windows-latest | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24" | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v1 | |
| - name: Test | |
| run: ./hack/coverage.bash | |
| shell: bash |