Skip to content

fix: Add explicit namespace metadata #40

fix: Add explicit namespace metadata

fix: Add explicit namespace metadata #40

Workflow file for this run

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"