Update loft utils for helm v4 #1380
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: sudo snap remove helm | |
| - 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 |