Skip to content

Commit 7d6a471

Browse files
authored
Add lint-test Github action (open-telemetry#5)
1 parent fc71991 commit 7d6a471

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/lint-test.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint and Test Charts
2+
3+
on: pull_request
4+
5+
jobs:
6+
lint-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
12+
- name: Fetch history
13+
run: git fetch --prune --unshallow
14+
15+
- name: Run chart-testing (lint)
16+
id: lint
17+
uses: helm/[email protected]
18+
with:
19+
command: lint
20+
21+
- name: Create kind cluster
22+
uses: helm/[email protected]
23+
# Only build a kind cluster if there are chart changes to test.
24+
if: steps.lint.outputs.changed == 'true'
25+
26+
- name: Run chart-testing (install)
27+
uses: helm/[email protected]
28+
with:
29+
command: install

ct.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See https://github.com/helm/chart-testing#configuration
2+
remote: origin
3+
chart-dirs:
4+
- charts
5+
chart-repos:
6+
- bitnami=https://charts.bitnami.com/bitnami
7+
helm-extra-args: --timeout 600s

0 commit comments

Comments
 (0)