-
Notifications
You must be signed in to change notification settings - Fork 246
75 lines (73 loc) · 2.25 KB
/
helm-static-checks.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
name: Helm static checks
on:
pull_request:
branches:
- master
- release/**
- next/**
paths:
- helm/**
- test/postman/helm/**
- .github/workflows/helm*
push:
branches:
- master
- release/**
jobs:
build_vars:
runs-on: ubuntu-latest
outputs:
app_charts: ${{ steps.getcharts.outputs.app }}
lib_charts: ${{ steps.getcharts.outputs.lib }}
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
fetch-depth: 2
- id: getcharts
uses: >-
./.github/actions/charts-as-json
with:
charts-root: helm
helm_unit_test:
needs:
- build_vars
strategy:
matrix: ${{ fromJSON(needs.build_vars.outputs.app_charts) }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: >-
Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
chart-dir: helm/${{ matrix.charts.name }}
- uses: >-
Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
plugin_url: https://github.com/helm-unittest/helm-unittest
- name: Run Helm unit tests if present
run: |
if [ -d "helm/${{ matrix.charts.name }}/tests" ]; then helm unittest helm/${{ matrix.charts.name }}
else echo "${{ matrix.charts.name }} chart has no unit tests... skipping."
fi
helm_yaml_lint:
needs:
- build_vars
strategy:
matrix: ${{ fromJSON(needs.build_vars.outputs.app_charts) }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: >-
Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
chart-dir: helm/${{ matrix.charts.name }}
- uses: >-
Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
chart-dir: helm/${{ matrix.charts.name }}
helm-options: >-
--set global.search.sharedSecret=dummy
--set global.search.alfrescoRegistryPullSecrets=dummy