fix: Add explicit namespace metadata #40
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: Unit Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| unit-tests: | |
| name: Run Helm Unit Tests | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v3 | |
| with: | |
| version: v3.13.2 | |
| - name: Install helm-unittest plugin | |
| run: | | |
| helm plugin install https://github.com/helm-unittest/helm-unittest.git --version v1.0.0 | |
| - name: Update dependencies | |
| run: helm dependency update charts/sourcebot/ | |
| - name: Run unit tests | |
| run: | | |
| helm unittest charts/sourcebot/ --color --output-type JUnit --output-file test-results.xml | |
| - name: Publish Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: always() | |
| with: | |
| files: test-results.xml | |
| check_name: "Helm Unit Test Results" | |
| comment_title: "Helm Unit Test Results" |