mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
add tests before release (#2174)
Signed-off-by: George Kaz <egeorgekaz@gmail.com>
This commit is contained in:
parent
3de6128147
commit
c73a14eba2
2 changed files with 21 additions and 5 deletions
20
.github/workflows/helm-release.yaml
vendored
20
.github/workflows/helm-release.yaml
vendored
|
@ -8,8 +8,28 @@ on:
|
||||||
- '.github/workflows/helm-release.yaml'
|
- '.github/workflows/helm-release.yaml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
helm-tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Unshallow
|
||||||
|
run: git fetch --prune --unshallow
|
||||||
|
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
|
||||||
|
- name: Set up chart-testing
|
||||||
|
uses: helm/chart-testing-action@v2.0.1
|
||||||
|
|
||||||
|
- name: Run chart-testing (lint)
|
||||||
|
run: ct lint --target-branch=main --check-version-increment=false
|
||||||
|
|
||||||
create-release:
|
create-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: helm-tests
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
6
.github/workflows/helm-test.yaml
vendored
6
.github/workflows/helm-test.yaml
vendored
|
@ -1,15 +1,11 @@
|
||||||
name: helm-test
|
name: helm-test
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'main'
|
|
||||||
paths:
|
|
||||||
- 'charts/kyverno/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
paths:
|
paths:
|
||||||
- 'charts/kyverno/**'
|
- 'charts/kyverno/**'
|
||||||
|
- '.github/workflows/helm-test.yaml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
helm-tests:
|
helm-tests:
|
||||||
|
|
Loading…
Reference in a new issue