-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(vector): Run CI on any changes (#374)
Without this PRs that don't make changes to any charts don't pass CI. I think the overhead of just testing all charts is fairly minimal. Signed-off-by: Jesse Szwedko <[email protected]>
- Loading branch information
Showing
2 changed files
with
1 addition
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,34 +5,8 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
changed: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
charts: ${{ steps.list-changed.outputs.changed }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed) | ||
if [[ -n "$changed" ]]; then | ||
echo -n "Charts changed:" | ||
echo "$changed" | ||
echo "::set-output name=changed::$changed" | ||
else | ||
echo "PR without any chart changes - failing" | ||
exit 1 | ||
fi | ||
lint-chart: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- changed | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -47,8 +21,6 @@ jobs: | |
|
||
lint-docs: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- changed | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -65,8 +37,6 @@ jobs: | |
kubeval-chart: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- changed | ||
strategy: | ||
matrix: | ||
# When changing versions here, check that the version exists at: https://github.com/yannh/kubernetes-json-schema and https://hub.docker.com/r/kindest/node/tags | ||
|
@@ -91,7 +61,6 @@ jobs: | |
- name: Run kubeval | ||
env: | ||
KUBERNETES_VERSION: ${{ matrix.k8s }} | ||
CHANGED_CHARTS: ${{needs.changed.outputs.charts}} | ||
run: .github/kubeval.sh | ||
|
||
install-chart: | ||
|