forked from kubernetes/autoscaler
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (42 loc) · 1.21 KB
/
pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
jobs:
changes:
outputs:
charts: ${{ steps.filter.outputs.charts }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- id: filter
uses: dorny/[email protected]
with:
filters: |
charts:
- 'charts/cluster-autoscaler/Chart.yaml'
- 'charts/cluster-autoscaler/*'
token: ${{ secrets.GITHUB_TOKEN }}
helm-lint-test:
if: ${{ needs.changes.outputs.charts == 'true' }}
name: Helm chart
needs:
- changes
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch history
run: git fetch --prune --unshallow
- id: lint
name: Run chart-testing (lint)
uses: helm/[email protected]
with:
command: lint
# Only build a kind cluster if there are chart changes to test.
- if: steps.lint.outputs.changed == 'true'
name: Create kind cluster
uses: helm/[email protected]
- name: Run chart-testing (install)
uses: helm/[email protected]
with:
command: install
name: Lint and Test Charts
on: pull_request