-
Notifications
You must be signed in to change notification settings - Fork 12
56 lines (49 loc) · 1.26 KB
/
check.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: PR Check
on:
pull_request:
jobs:
list:
name: list changes
runs-on: ubuntu-latest
outputs:
folders: ${{ steps.changed-files.outputs.all_modified_files }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v35
with:
files: 'charts/**'
dir_names: true
dir_names_max_depth: "2"
json: true
json_raw_format: true
- name: Return output
env:
OUTPUT: ${{ steps.changed-files.outputs.all_modified_files }}
run: |
echo $OUTPUT
check:
name: ${{ matrix.path }}
runs-on: ubuntu-latest
needs: [list]
if: ${{ needs.list.outputs.folders != '[]' && needs.list.outputs.folders != '' }}
strategy:
fail-fast: false
matrix:
path: ${{ fromJson(needs.list.outputs.folders) }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.11.2
- name: Check chart
working-directory: ${{ matrix.path }}
run: >
helm dependency update &&
helm lint