mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
ci: Update PR validation
This commit is contained in:
parent
6ae2682e0b
commit
dd22935f93
4
.github/workflows/charts-lint.yaml
vendored
4
.github/workflows/charts-lint.yaml
vendored
@ -6,6 +6,9 @@ on:
|
|||||||
checkoutCommit:
|
checkoutCommit:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
chartChangesDetected:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
@ -34,6 +37,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Collect changes
|
- name: Collect changes
|
||||||
id: list-changed
|
id: list-changed
|
||||||
|
if: inputs.chartChangesDetected == 'true'
|
||||||
run: |
|
run: |
|
||||||
EXCLUDED=$(yq eval -o=json '.excluded-charts // []' .github/ct-lint.yaml)
|
EXCLUDED=$(yq eval -o=json '.excluded-charts // []' .github/ct-lint.yaml)
|
||||||
CHARTS=$(ct list-changed --config .github/ct-lint.yaml)
|
CHARTS=$(ct list-changed --config .github/ct-lint.yaml)
|
||||||
|
4
.github/workflows/charts-test.yaml
vendored
4
.github/workflows/charts-test.yaml
vendored
@ -6,6 +6,9 @@ on:
|
|||||||
checkoutCommit:
|
checkoutCommit:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
chartChangesDetected:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit-test:
|
unit-test:
|
||||||
@ -63,6 +66,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run chart-testing (list-changed)
|
- name: Run chart-testing (list-changed)
|
||||||
id: list-changed
|
id: list-changed
|
||||||
|
if: inputs.chartChangesDetected == 'true'
|
||||||
run: |
|
run: |
|
||||||
EXCLUDED=$(yq eval -o=json '.excluded-charts // []' .github/ct-install.yaml)
|
EXCLUDED=$(yq eval -o=json '.excluded-charts // []' .github/ct-install.yaml)
|
||||||
CHARTS=$(ct list-changed --config .github/ct-install.yaml)
|
CHARTS=$(ct list-changed --config .github/ct-install.yaml)
|
||||||
|
2
.github/workflows/pr-validate.yaml
vendored
2
.github/workflows/pr-validate.yaml
vendored
@ -36,6 +36,7 @@ jobs:
|
|||||||
- charts-changelog
|
- charts-changelog
|
||||||
with:
|
with:
|
||||||
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
|
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
|
||||||
|
chartChangesDetected: ${{ needs.pr-metadata.outputs.addedOrModified }}
|
||||||
|
|
||||||
charts-test:
|
charts-test:
|
||||||
uses: k8s-at-home/charts/.github/workflows/charts-test.yaml@master
|
uses: k8s-at-home/charts/.github/workflows/charts-test.yaml@master
|
||||||
@ -45,3 +46,4 @@ jobs:
|
|||||||
- charts-lint
|
- charts-lint
|
||||||
with:
|
with:
|
||||||
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
|
checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
|
||||||
|
chartChangesDetected: ${{ needs.pr-metadata.outputs.addedOrModified }}
|
||||||
|
Loading…
Reference in New Issue
Block a user