Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ymedlop committed May 24, 2024
2 parents cefcfe0 + 253ba9a commit 9f85691
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 9 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/helm-kubeconform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Helm Kubeconform
on:
push:
branches:
- main
jobs:
helm-kubeconform:
name: Helm Kubeconform
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4
- name: Install helm-kubeconform plugin
run: |
#!/bin/bash
helm plugin install https://github.com/melmorabity/helm-kubeconform --version 0.6.4.1
- name: Helm Kubeconform
run: |
#!/bin/bash
set -e
for D in $(find charts -not -path '*/.*' -mindepth 1 -maxdepth 1 -type d)
do
helm dependency update $D
helm kubeconform $D --output junit --schema-location https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/v3/apis__apiextensions.k8s.io__v1_openapi.json
done
11 changes: 9 additions & 2 deletions .github/workflows/helm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- name: Wait for tests to succeed
- name: Wait for unit tests to succeed
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.ref }}
check-name: 'Helm Unit Test'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- name: Wait for kubeconform to succeed
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.ref }}
check-name: 'Helm Kubeconform'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -32,4 +39,4 @@ jobs:
with:
skip_existing: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
8 changes: 6 additions & 2 deletions .github/workflows/helm-unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ jobs:
- name: Unit Test Helm Charts
run: |
#!/bin/bash
helm dependency update charts/micro-node-red
helm unittest charts/micro-node-red
set -e
for D in $(find charts -not -path '*/.*' -mindepth 1 -maxdepth 1 -type d)
do
helm dependency update $D
helm unittest $D
done
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Helm Unit Test](https://github.com/ymedlop/micro-helm-chart/actions/workflows/helm-unittest.yaml/badge.svg?branch=main&event=push)](https://github.com/ymedlop/micro-helm-chart/actions/workflows/helm-unittest.yaml) [![Release Charts](https://github.com/ymedlop/micro-helm-chart/actions/workflows/helm-release.yml/badge.svg?event=push)](https://github.com/ymedlop/micro-helm-chart/actions/workflows/helm-release.yml) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Helm Unit Test](https://github.com/ymedlop/micro-helm-chart/actions/workflows/helm-unittest.yaml/badge.svg?branch=main&event=push)](https://github.com/ymedlop/micro-helm-chart/actions/workflows/helm-unittest.yaml) [![Helm Kubeconform](https://github.com/ymedlop/micro-helm-charts/actions/workflows/helm-kubeconform.yaml/badge.svg?event=push)](https://github.com/ymedlop/micro-helm-charts/actions/workflows/helm-kubeconform.yaml) [![Release Charts](https://github.com/ymedlop/micro-helm-chart/actions/workflows/helm-release.yml/badge.svg?event=push)](https://github.com/ymedlop/micro-helm-chart/actions/workflows/helm-release.yml) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

# Micro Helm Chart
Helm Charts for micro-services deployments in Kubernetes following the DRY (Don't Repeat Yourself) principle.
Expand All @@ -9,4 +9,4 @@ helm repo update
```

## License
[Apache License 2.0](/LICENSE)
[Apache License 2.0](/LICENSE)
9 changes: 6 additions & 3 deletions docker-run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/ash

helm dependency update /apps/charts/micro-node-red
helm unittest /apps/charts/micro-node-red
set -e
for D in $(find charts -not -path '*/.*' -mindepth 1 -maxdepth 1 -type d)
do
helm dependency update $D
helm unittest $D
done

0 comments on commit 9f85691

Please sign in to comment.