Skip to content

Commit

Permalink
ci(lint): lint and test helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
TartanLeGrand committed Jun 30, 2024
1 parent c7c4dd1 commit a090d10
Show file tree
Hide file tree
Showing 22 changed files with 53 additions and 20 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/conventional-commits-check.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Conventional Commits Check

on:
pull_request:
branches: [ master ]
on: pull_request

jobs:
check-conventional-commits:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Lint and Test Charts

on: pull_request

jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.14.4

- uses: actions/setup-python@v5
with:
python-version: '3.x'
check-latest: true

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

- name: Add Helm Repositories
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }}

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

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --target-branch ${{ github.event.repository.default_branch }}
15 changes: 0 additions & 15 deletions .github/workflows/lint.yaml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion values.yaml → charts/n8n/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ secret: # Dict with all n8n json config options, unlike config the values here w

## ALL possible n8n Values

#database:
# database:
# type: # Type of database to use - Other possible types ['sqlite', 'mariadb', 'mysqldb', 'postgresdb'] - default: sqlite
# tablePrefix: # Prefix for table names - default: ''
# postgresdb:
Expand Down
Binary file removed charts/redis-17.2.0.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repositories:
releases:
- name: n8n
namespace: {{ .Values.namespace }}
chart: .
chart: ./charts/n8n
values:
- n8n:
encryption_key: {{ .Values.encryption_key }}
Expand Down

0 comments on commit a090d10

Please sign in to comment.