[release process update] fetch git tags explicitly #89
Workflow file for this run
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: Test Helm Chart | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| unittest: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Install Helm | |
| uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1 | |
| with: | |
| version: 'latest' | |
| - name: Install helm-unittest | |
| run: | | |
| helm plugin install https://github.com/quintush/helm-unittest --verify=false | |
| - name: Run unit tests | |
| run: | | |
| helm unittest braintrust | |
| lint-test: | |
| name: Lint and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Install Helm | |
| uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1 | |
| with: | |
| version: 'latest' | |
| - name: Lint chart | |
| run: helm lint braintrust --strict | |
| test-values: | |
| name: Test with Values Files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Install Helm | |
| uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1 | |
| with: | |
| version: 'latest' | |
| - name: Test chart rendering with Azure values | |
| run: | | |
| helm template test-release braintrust --values braintrust/ci/values-azure.yaml > /dev/null | |
| echo "✅ Chart rendered successfully with braintrust/ci/values-azure.yaml" | |
| - name: Test chart rendering with Google values | |
| run: | | |
| helm template test-release braintrust --values braintrust/ci/values-google.yaml > /dev/null | |
| echo "✅ Chart rendered successfully with braintrust/ci/values-google.yaml" | |
| - name: Test chart rendering with AWS values | |
| run: | | |
| helm template test-release braintrust --values braintrust/ci/values-aws.yaml > /dev/null | |
| echo "✅ Chart rendered successfully with braintrust/ci/values-aws.yaml" | |
| - name: Test chart rendering with Minimal values | |
| run: | | |
| helm template test-release braintrust --values braintrust/ci/values-minimal.yaml > /dev/null | |
| echo "✅ Chart rendered successfully with braintrust/ci/values-minimal.yaml" |