mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +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'
|
||||
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
needs: helm-tests
|
||||
steps:
|
||||
- name: Checkout
|
||||
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
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
paths:
|
||||
- 'charts/kyverno/**'
|
||||
pull_request:
|
||||
branches:
|
||||
- 'main'
|
||||
paths:
|
||||
- 'charts/kyverno/**'
|
||||
- '.github/workflows/helm-test.yaml'
|
||||
|
||||
jobs:
|
||||
helm-tests:
|
||||
|
|
Loading…
Reference in a new issue