-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed CI steps for testing chart (#268)
* Fixed CI steps for testing chart Signed-off-by: Abhishek Dubey <[email protected]> * Fixed CI steps for testing chart Signed-off-by: Abhishek Dubey <[email protected]> * Fixed CI steps for testing chart Signed-off-by: Abhishek Dubey <[email protected]> --------- Signed-off-by: Abhishek Dubey <[email protected]>
- Loading branch information
1 parent
d50ec64
commit 57fbc49
Showing
4 changed files
with
17 additions
and
28 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
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
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 |
---|---|---|
|
@@ -8,7 +8,9 @@ jobs: | |
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
|
@@ -18,24 +20,18 @@ jobs: | |
- name: Install Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.5.4 | ||
version: v3.16.2 | ||
|
||
- name: Install yq | ||
run: | | ||
sudo snap install yq | ||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
check-latest: true | ||
|
||
- name: Install and test Redis Related Helm charts | ||
- name: Install and test Helm charts | ||
run: | | ||
kubectl cluster-info --context kind-kind | ||
chart_dirs=("redis-operator" "redis" "redis-cluster" "redis-replication" "redis-sentinel") | ||
for dir in "${chart_dirs[@]}" | ||
do | ||
if [[ -f ./charts/$dir/Chart.yaml ]]; then | ||
helm dependency update ./charts/$dir/ | ||
fi | ||
chart_version=$(yq e .version ./charts/$dir/Chart.yaml) | ||
echo "Installing $dir chart with version $chart_version..." | ||
helm install $dir ./charts/$dir/ | ||
helm test $dir | ||
done | ||
echo "Listing installed Helm charts..." | ||
changed=$(ct list-changed --config ct.yaml) | ||
ct install --config ct.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