-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: [email protected]
- Loading branch information
Showing
3 changed files
with
19 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,34 +14,27 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: harbor | ||
fetch-depth: 0 | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v1 | ||
with: | ||
version: '${{ matrix.helm_version }}' | ||
|
||
- name: Helm version | ||
run: | ||
helm version -c | ||
|
||
- name: Run lint | ||
continue-on-error: ${{ startsWith(matrix.helm_version, '2.') }} | ||
working-directory: ./harbor | ||
run: | ||
helm lint . | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Update dependency | ||
working-directory: ./harbor | ||
run: | ||
helm dependency update . | ||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run template for ingress expose | ||
working-directory: ./harbor | ||
run: | ||
helm template --set "expose.type=ingress" --output-dir $(mktemp -d -t output-XXXXXXXXXX) . | ||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed) | ||
if [[ -n "$changed" ]]; then | ||
echo "::set-output name=changed::true" | ||
fi | ||
- name: Run template for nodePort expose | ||
working-directory: ./harbor | ||
run: | ||
helm template --set "expose.type=nodePort,expose.tls.auto.commonName=127.0.0.1" --output-dir $(mktemp -d -t output-XXXXXXXXXX) . | ||
- name: Run chart-testing (lint) | ||
run: ct lint --charts . --validate-maintainers=false --lint-conf=lintconf.yaml |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
rules: | ||
comments: | ||
require-starting-space: false |
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