NDEV-20176 : backport allow changes for preexisting resources that violate policy #90
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: helm-test | |
on: | |
pull_request: | |
branches: | |
- main | |
- release* | |
paths: | |
- charts/** | |
- .github/workflows/helm-test.yaml | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
helm-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0 | |
- name: Setup build env | |
uses: ./.github/actions/setup-build-env | |
with: | |
build-cache-key: helm-tests | |
- name: Setup python | |
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0 | |
with: | |
python-version: 3.7 | |
- name: Set up chart-testing | |
uses: helm/chart-testing-action@b43128a8b25298e1e7b043b78ea6613844e079b1 # v2.6.0 | |
- name: Run chart-testing (lint) | |
run: | | |
if [[ $(ct list-changed --target-branch=main) ]]; | |
then | |
ct lint --target-branch=main --check-version-increment=false | |
fi | |
- name: Setup test env | |
uses: ./.github/actions/setup-test-env | |
- name: Helm test | |
run: make helm-test | |
- name: Debug failure | |
if: failure() | |
uses: ./.github/actions/kyverno-logs | |
linter-artifacthub: | |
runs-on: ubuntu-latest | |
container: | |
image: artifacthub/ah | |
options: --user root | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0 | |
- name: Run ah lint | |
working-directory: ./charts/ | |
run: ah lint |