Skip to content

Commit

Permalink
refactor: CI Testing (#100)
Browse files Browse the repository at this point in the history
* refactor: CI testing

* chore: python version

* test: chart test

* chore: ready for review
  • Loading branch information
daviderli614 authored Jan 15, 2024
1 parent c0a7068 commit 421859c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
6 changes: 0 additions & 6 deletions .github/chart-test.yaml

This file was deleted.

27 changes: 19 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.10.0
version: v3.12.1

- name: Testing add greptime helm repo
run: |
Expand All @@ -27,18 +27,29 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: '3.9'

- name: Set up chart testing
uses: helm/[email protected]
- name: Set up chart-testing
uses: helm/[email protected]

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --chart-dirs charts --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing (lint)
run: ct lint --config .github/chart-test.yaml --validate-maintainers=false
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }}

- name: Create Kubernetes
uses: helm/[email protected]
- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/[email protected]
with:
wait: 120s

- name: Run chart-testing (install)
run: ct install --config .github/chart-test.yaml
if: steps.list-changed.outputs.changed == 'true'
run: ct install --chart-dirs charts --target-branch ${{ github.event.repository.default_branch }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
HELM_DOCS_VERSION = v1.11.3
HELM_DOCS_VERSION = v1.12.0

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
Expand Down

0 comments on commit 421859c

Please sign in to comment.