Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Add statbank-pxwebapi chart #128

Add statbank-pxwebapi chart

Add statbank-pxwebapi chart #128

Workflow file for this run

name: Lint and Test Charts
on:
pull_request:
branches:
- main
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.11.2
- uses: actions/setup-python@v4
with:
python-version: '3.9'
check-latest: true
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.5.0
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
#/~https://github.com/helm/chart-testing/issues/192
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --validate-maintainers=false
changes:
if: ${{ github.actor != 'renovate[bot]' }}
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
charts: ${{ steps.filter.outputs.changes }}
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
jupyter-python-dapla:
- 'charts/jupyter-python-dapla/**'
unittest:
needs: changes
if: ${{ needs.changes.outputs.charts != '[]' && needs.changes.outputs.charts != '' }}
strategy:
matrix:
# Parse JSON array containing names of all filters matching any of changed files
# e.g. ['package1', 'package2'] if both package folders contains changes
charts: ${{ fromJSON(needs.changes.outputs.charts) }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: helm unit test
run: |
echo "Changed chart folders:"
echo "${{ matrix.charts }}"
helm plugin install /~https://github.com/helm-unittest/helm-unittest.git
helm dependency update charts/${{ matrix.charts }}
helm unittest charts/${{ matrix.charts }} -f ../../tests/*.yaml