Skip to content

Commit a0b5109

Browse files
committed
validate YAML in test-charts.yml, beautify worflow YAMLs, update Helm to 4.1.0
1 parent 6e9f512 commit a0b5109

File tree

3 files changed

+19
-30
lines changed

3 files changed

+19
-30
lines changed

.github/workflows/release-chart.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ name: Release Charts
22

33
on:
44
workflow_run:
5-
workflows: [ "Test Charts" ]
6-
branches: [ main ]
5+
workflows:
6+
- Test Charts
7+
branches:
8+
- main
79
types:
810
- completed
911

@@ -27,4 +29,4 @@ jobs:
2729
- name: Run chart-releaser
2830
uses: helm/chart-releaser-action@v1.6.0
2931
env:
30-
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
32+
CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/test-charts.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Test Charts
22

3-
on: ["push", "pull_request"]
3+
on:
4+
- push
5+
- pull_request
46

57
jobs:
68
test:
@@ -10,7 +12,16 @@ jobs:
1012
uses: actions/checkout@v2
1113
with:
1214
fetch-depth: 0
15+
1316
- name: Test Chart
14-
uses: d3adb5/helm-unittest-action@v2
17+
uses: d3adb5/helm-unittest-action@v2.5.0
1518
with:
16-
helm-version: 'v3.11.2'
19+
helm-version: v4.1.0
20+
21+
# validate YAML files with JSON schema
22+
- name: Install the JSON Schema CLI
23+
uses: sourcemeta/jsonschema@v14.7.0
24+
- name: validate every Chart.yaml
25+
run: |-
26+
allCharts=$(find charts/ -name Chart.yaml -printf '%p ')
27+
jsonschema validate chart-schema.json ${allCharts} --http

.github/workflows/validate-yaml.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)