Delete .DS_Store #15
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: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| release: | |
| types: [ published ] | |
| env: | |
| HELM_VERSION: "3.14.0" | |
| KUBERNETES_VERSION: "1.28.9" | |
| jobs: | |
| lint: | |
| name: Lint Charts | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: ${{ env.HELM_VERSION }} | |
| - name: Set up chart-testing | |
| uses: helm/chart-testing-action@v2.6.1 | |
| - name: Run chart-testing (lint) | |
| run: ct lint --target-branch ${{ github.event.repository.default_branch }} | |
| - name: Helm Lint | |
| run: | | |
| helm lint . | |
| helm lint charts/portworx-operator | |
| helm lint charts/portworx-software | |
| helm lint charts/portworx-storageclasses | |
| helm lint charts/portworx-monitoring | |
| test: | |
| name: Test Charts | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: ${{ env.HELM_VERSION }} | |
| - name: Template Charts (without cluster) | |
| run: | | |
| helm template test-release . \ | |
| --set global.imageRegistry="test-registry.com" \ | |
| --set global.clusterName="test-cluster" \ | |
| --set monitoring.enabled=false | |
| - name: Validate Chart Templates | |
| run: | | |
| # Test all sub-charts individually | |
| helm template test-operator charts/portworx-operator \ | |
| --set global.imageRegistry="test-registry.com" | |
| helm template test-software charts/portworx-software \ | |
| --set global.imageRegistry="test-registry.com" \ | |
| --set global.clusterName="test-cluster" | |
| helm template test-storageclasses charts/portworx-storageclasses \ | |
| --set global.imageRegistry="test-registry.com" | |
| helm template test-monitoring charts/portworx-monitoring \ | |
| --set global.imageRegistry="test-registry.com" |