mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
6cb54a475c
* fix: reduce token permissions Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix: reduce token permissions Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
name: helm-test
|
|
|
|
permissions: {}
|
|
|
|
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
- name: Setup build env
|
|
uses: ./.github/actions/setup-build-env
|
|
with:
|
|
build-cache-key: helm-tests
|
|
- name: Setup python
|
|
uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Set up chart-testing
|
|
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
- name: Run ah lint
|
|
working-directory: ./charts/
|
|
run: ah lint
|