Skip to content

Commit

Permalink
misc(CI): Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jdenquin committed Feb 15, 2024
1 parent a6df972 commit f9d61ab
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/chart-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
on: pull_request

name: Lint and Test Charts

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Helm
uses: azure/setup-helm@v3

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.7

- name: Set up chart-testing
uses: helm/chart-testing-action@v2

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed)
if [[ -n "$changed" ]]; then
echo "{changed}={true}" >> $GITHUB_OUTPUT
fi
- name: Run chart-testing (lint)
run: ct lint

- name: Create Kind cluster
uses: helm/kind-action@v1
if: ${{ needs.list-changed.outputs.changed }} == 'true'

- name: Run chart-testing (install)
run: ct install
2 changes: 2 additions & 0 deletions examples/ci/values.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
frontUrl: https://foobar.dev
apiUrl: https://foobar.dev

0 comments on commit f9d61ab

Please sign in to comment.