Skip to content

Commit

Permalink
Merge pull request #23 from SamuAlfageme/lint_test
Browse files Browse the repository at this point in the history
Add 'lint-test' GitHub action to run on PRs
  • Loading branch information
SamuAlfageme authored Apr 27, 2021
2 parents 051bf0f + 7176c5f commit c2b9efb
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ct.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# See https://github.com/helm/chart-testing#configuration
remote: origin
target-branch: master
chart-dirs:
- .
helm-extra-args: --timeout 600s
30 changes: 30 additions & 0 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint and Test Charts

on: pull_request

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

- name: Lint chart
id: lint
uses: helm/[email protected]
with:
command: lint
config: .ct.yaml

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

- name: Install chart
uses: helm/[email protected]
if: steps.lint.outputs.changed == 'true'
with:
command: install
config: .ct.yaml

0 comments on commit c2b9efb

Please sign in to comment.