This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
remove custom image support for all our services #117
Workflow file for this run
This file contains 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: 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.4.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 |