Skip to content

[TH2-5020] Adapt charts to work with new structure for urlPaths #388

[TH2-5020] Adapt charts to work with new structure for urlPaths

[TH2-5020] Adapt charts to work with new structure for urlPaths #388

name: Lint and unit test box chart
permissions:
checks: write
pull-requests: write
on:
pull_request:
paths:
- "box-chart/**"
- ".github/workflows/lint-unit-test-box-chart.yaml"
workflow_dispatch:
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.5.0
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
# yamllint (https://github.com/adrienverge/yamllint) which require Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Set up chart-testing
uses: helm/[email protected]
- name: run unit test
run: |
helm plugin install https://github.com/quintush/helm-unittest --version 0.2.8
helm unittest -3 box-chart --color -o ./test-results/results.xml -t JUnit
- name: Publish Box Chart Test Results
uses: EnricoMi/[email protected]
if: always()
with:
check_name: Box Chart Unit Test Results
comment_title: Box Chart Test Results
files: "./test-results/results.xml"
- name: Run box chart linting
run: |
ct lint \
--lint-conf=ci/cfg/lint-cfg.yml \
--check-version-increment \
--validate-maintainers=false --debug --charts ./box-chart