2021-07-14 20:10:41 +01:00
|
|
|
name: helm-test
|
2023-01-03 12:25:19 +01:00
|
|
|
|
2023-06-30 13:44:57 +02:00
|
|
|
permissions: {}
|
|
|
|
|
2021-07-14 20:10:41 +01:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2022-03-08 02:08:46 +01:00
|
|
|
- main
|
|
|
|
- release*
|
2021-07-14 20:10:41 +01:00
|
|
|
paths:
|
2022-03-08 02:08:46 +01:00
|
|
|
- charts/**
|
|
|
|
- .github/workflows/helm-test.yaml
|
2021-07-14 20:10:41 +01:00
|
|
|
|
2023-01-06 16:24:55 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-07-14 20:10:41 +01:00
|
|
|
jobs:
|
|
|
|
helm-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-10-25 04:29:31 +00:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-09-27 10:24:27 +02:00
|
|
|
- name: Setup caches
|
|
|
|
uses: ./.github/actions/setup-caches
|
|
|
|
timeout-minutes: 5
|
|
|
|
continue-on-error: true
|
|
|
|
with:
|
|
|
|
build-cache-key: helm-tests
|
2023-01-05 16:52:52 +01:00
|
|
|
- name: Setup build env
|
|
|
|
uses: ./.github/actions/setup-build-env
|
2023-08-30 22:44:51 +02:00
|
|
|
timeout-minutes: 10
|
2023-01-05 16:52:52 +01:00
|
|
|
- name: Setup python
|
2023-10-13 05:06:52 +00:00
|
|
|
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
|
2021-07-14 20:10:41 +01:00
|
|
|
with:
|
|
|
|
python-version: 3.7
|
|
|
|
- name: Set up chart-testing
|
2023-03-27 10:47:32 +00:00
|
|
|
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0
|
2021-07-14 20:10:41 +01:00
|
|
|
- name: Run chart-testing (lint)
|
2022-12-09 17:10:16 +01:00
|
|
|
run: |
|
2023-10-26 18:26:26 +05:30
|
|
|
if [[ $(ct list-changed --target-branch=main) ]];
|
2022-12-09 17:10:16 +01:00
|
|
|
then
|
2023-10-26 18:26:26 +05:30
|
|
|
ct lint --target-branch=main --check-version-increment=false --validate-maintainers=false
|
2022-12-09 17:10:16 +01:00
|
|
|
fi
|
2023-01-20 08:40:44 +01:00
|
|
|
- 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
|
2023-04-03 15:56:52 +08:00
|
|
|
|
|
|
|
linter-artifacthub:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: artifacthub/ah
|
|
|
|
options: --user root
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-10-25 04:29:31 +00:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-04-03 15:56:52 +08:00
|
|
|
- name: Run ah lint
|
|
|
|
working-directory: ./charts/
|
|
|
|
run: ah lint
|