File tree Expand file tree Collapse file tree 9 files changed +115
-260
lines changed
Expand file tree Collapse file tree 9 files changed +115
-260
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Release Charts
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ release :
10+ # depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
11+ # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
12+ permissions :
13+ contents : write
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v2
18+ with :
19+ fetch-depth : 0
20+
21+ - name : Helm linting
22+ run : |
23+ ./test/lint.sh
24+
25+ - name : Configure Git
26+ run : |
27+ git config user.name "chart-releaser"
28+ git config user.email "chart-releaser@users.noreply.github.com"
29+
30+ - name : Install Helm
31+ uses : azure/setup-helm@v1
32+ with :
33+ version : v3.8.1
34+
35+ - name : Add repositories
36+ run : |
37+ for repo in $(yq '.chart-repos[]' test/config.yaml); do helm repo add $(echo $repo | cut -d'=' -f1) $(echo $repo | cut -d'=' -f2) --force-update; done
38+
39+ - name : Run chart-releaser
40+ uses : helm/chart-releaser-action@v1.4.0
41+ with :
42+ charts_dir : .
43+ env :
44+ CR_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
45+ CR_SKIP_EXISTING : ' true'
Original file line number Diff line number Diff line change 1+ name : Test Helm Charts
2+ on :
3+ pull_request :
4+ branches :
5+ - master
6+
7+ jobs :
8+ test :
9+ name : ' Test'
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v2
15+
16+ - name : Helm linting
17+ run : |
18+ ./test/lint.sh
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ chart-repos:
55 - bitnami=https://charts.bitnami.com/bitnami
66 - helm=https://charts.helm.sh/stable
77 - statcan=https://statcan.github.io/charts
8- - minio=https://helm.min.io/
98check-version-increment : true
109validate-maintainers : false
1110excluded-charts :
Original file line number Diff line number Diff line change 22
33set -euxo pipefail
44
5+ CHARTS=" $@ "
6+ CHART_TESTING_VERSION=" 3.7.0"
7+
8+ if [ -z " $CHARTS " ]; then
9+ CHARTS=" --all"
10+ else
11+ CHARTS=" --charts $CHARTS "
12+ fi
13+
514docker run --rm \
615 --volume " $( pwd) :/workdir" \
716 --workdir /workdir \
8- " quay.io/helmpack/chart-testing:v3.1.1 " ct lint --config test/config.yaml --all
17+ " quay.io/helmpack/chart-testing:v ${CHART_TESTING_VERSION} " ct lint --config test/config.yaml --lint-conf test/lintconf.yaml $CHARTS
Original file line number Diff line number Diff line change 1+ ---
2+ rules :
3+ braces :
4+ min-spaces-inside : 0
5+ max-spaces-inside : 0
6+ min-spaces-inside-empty : -1
7+ max-spaces-inside-empty : -1
8+ brackets :
9+ min-spaces-inside : 0
10+ max-spaces-inside : 0
11+ min-spaces-inside-empty : -1
12+ max-spaces-inside-empty : -1
13+ colons :
14+ max-spaces-before : 0
15+ max-spaces-after : 1
16+ commas :
17+ max-spaces-before : 0
18+ min-spaces-after : 1
19+ max-spaces-after : 1
20+ comments :
21+ require-starting-space : false
22+ min-spaces-from-content : 1
23+ document-end : disable
24+ document-start : disable # No --- to start a file
25+ empty-lines :
26+ max : 2
27+ max-start : 0
28+ max-end : 0
29+ hyphens :
30+ max-spaces-after : 1
31+ indentation :
32+ spaces : consistent
33+ indent-sequences : whatever # - list indentation will handle both indentation and without
34+ check-multi-line-strings : false
35+ key-duplicates : enable
36+ line-length : disable # Lines can be any length
37+ new-line-at-end-of-file : enable
38+ new-lines :
39+ type : unix
40+ trailing-spaces : enable
41+ truthy :
42+ level : warning
You can’t perform that action at this time.
0 commit comments