Skip to content

Commit

Permalink
chore(ci): test Helm chart in the PR validation workflow (#829)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Pacak <pacak.daniel@gmail.com>
Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
  • Loading branch information
krol3 and danielpacak committed Jan 5, 2022
1 parent c384c33 commit 8f637cf
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
- 'mkdocs.yml'
- 'LICENSE'
- 'NOTICE'

env:
GO_VERSION: "1.16"
KIND_VERSION: "v0.11.1"
Expand Down Expand Up @@ -215,6 +216,36 @@ jobs:
uses: codecov/codecov-action@v2
with:
files: ./itest/starboard-operator/configauditreport/conftest/coverage.txt
test-helm-chart:
name: Test Helm Chart
needs:
- itest-starboard-cli
- itest-starboard-operator
- integration-operator-conftest
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 #v2.4.0
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@18bc76811624f360dbd7f18c2d4ecb32c7b87bab #v1.1
with:
version: v3.5.0
- name: Set up python
uses: actions/setup-python@0066b88440aa9562be742e2c60ee750fc57d8849 #v2.3.0
with:
python-version: 3.7
- name: Setup Chart Linting
id: lint
uses: helm/chart-testing-action@5f16c27cf7a4fa9c776ff73734df3909b2b65127 #v2.1.0
- name: Setup Kubernetes cluster (KIND)
uses: helm/kind-action@94729529f85113b88f4f819c17ce61382e6d8478 #v1.2.0
with:
version: ${{ env.KIND_VERSION }}
image: ${{ env.KIND_IMAGE }}
- name: Run chart-testing
run: ct lint-and-install --validate-maintainers=false --charts deploy/helm
release-snapshot:
name: Release unversioned snapshot
needs:
Expand Down

0 comments on commit 8f637cf

Please sign in to comment.