diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b0dc27468ba..53e548e4cf1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,8 +101,7 @@ jobs: - name: Chart Rendering Tests run: | - cd contrib/charts/dragonfly - go test -v ./... + go test -v ./contrib/charts/dragonfly/... - name: Set up chart-testing uses: helm/chart-testing-action@v2.3.1 diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index ea7062931cae..e127e33abe86 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -70,6 +70,9 @@ jobs: - name: Install helm uses: azure/setup-helm@v3 + - name: Setup Go + uses: actions/setup-go@v3 + - name: Configure Git if: env.IS_PRERELEASE != 'true' run: | @@ -85,9 +88,12 @@ jobs: -e 's/^(appVersion\:) .*/\1 "'${{ env.TAG_NAME }}'"/g' \ contrib/charts/dragonfly/Chart.yaml + go test ./contrib/charts/dragonfly/... -update + git commit \ -m 'chore(helm-chart): update to ${{ env.TAG_NAME }}' \ - contrib/charts/dragonfly/Chart.yaml + contrib/charts/dragonfly/Chart.yaml \ + contrib/charts/dragonfly/ci - name: Push Helm chart as OCI to Github if: env.IS_PRERELEASE != 'true' diff --git a/contrib/charts/dragonfly/.helmignore b/contrib/charts/dragonfly/.helmignore index 0e8a0eb36f4c..095f37e704ab 100644 --- a/contrib/charts/dragonfly/.helmignore +++ b/contrib/charts/dragonfly/.helmignore @@ -21,3 +21,7 @@ .idea/ *.tmproj .vscode/ +ci/ +*.go +go.mod +go.sum diff --git a/go.work b/go.work new file mode 100644 index 000000000000..da3028d45b24 --- /dev/null +++ b/go.work @@ -0,0 +1,3 @@ +go 1.20 + +use ./contrib/charts/dragonfly