Skip to content

Commit

Permalink
Add helm chart linting to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Mar 13, 2024
1 parent e26ac76 commit e9a75fd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/charts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Helm Charts

on:
push:
pull_request:

jobs:
lint:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: iris-cpu
container: docker.io/library/ubuntu:latest
steps:
- name: Checkout source
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

- name: Setup Helm
uses: azure/setup-helm@v3.5

- name: Setup chart-testing
uses: helm/chart-testing-action@v2.6.1

- name: Lint
run: >
ct
lint
--target-branch=${{ github.event.repository.default_branch }}
--validate-maintainers=false

0 comments on commit e9a75fd

Please sign in to comment.