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 afa2e13
Show file tree
Hide file tree
Showing 23 changed files with 54 additions and 26 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
45 changes: 45 additions & 0 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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: 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.

6 changes: 0 additions & 6 deletions Chart.lock

This file was deleted.

6 changes: 6 additions & 0 deletions charts/n8n/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 18.6.1
digest: sha256:679512a5d6167cd529b9b6d861a6605f62683c3497b8f920fc344dd00bf0ba82
generated: "2024-06-30T21:29:50.717304471+02:00"
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 afa2e13

Please sign in to comment.