-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci test): add testing for helm chart (#622)
feat: add lint-test-chart job to CI Signed-off-by: Philipp Born <[email protected]> Signed-off-by: Philipp Born <[email protected]>
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# See https://github.com/helm/chart-testing#configuration | ||
remote: origin | ||
target-branch: main | ||
chart-dirs: | ||
- contrib/charts | ||
helm-extra-args: --debug --timeout 60s | ||
check-version-increment: false | ||
validate-maintainers: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,3 +80,49 @@ jobs: | |
GLOG_logtostderr=1 GLOG_vmodule=rdb_load=1,rdb_save=1,snapshot=1 ctest -V -L DFLY | ||
./dragonfly_test --mem_defrag_threshold=0.05 # trying to catch issue with defrag | ||
# GLOG_logtostderr=1 GLOG_vmodule=transaction=1,engine_shard_set=1 CTEST_OUTPUT_ON_FAILURE=1 ninja server/test | ||
lint-test-chart: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
check-latest: true | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --config .ct.yaml) | ||
if [[ -n "$changed" ]]; then | ||
echo "::set-output name=changed::true" | ||
fi | ||
- name: Run chart-testing (lint) | ||
run: | | ||
ct \ | ||
lint \ | ||
--config .ct.yaml \ | ||
${{github.event_name == 'workflow_dispatch' && '--all'}} ; | ||
- if: steps.list-changed.outputs.changed == 'true' || github.event_name == 'workflow_dispatch' | ||
name: Create kind cluster | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (install) | ||
run: | | ||
ct \ | ||
install \ | ||
--config .ct.yaml \ | ||
--debug \ | ||
--helm-extra-set-args "--set=image.repository=ghcr.io/${{ github.repository }}" \ | ||
${{github.event_name == 'workflow_dispatch' && '--all'}} ; |