-
Notifications
You must be signed in to change notification settings - Fork 35
62 lines (53 loc) · 1.7 KB
/
Copy pathpr-checks.yml
File metadata and controls
62 lines (53 loc) · 1.7 KB
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
name: Pull Request Checks
on:
pull_request:
paths:
- 'charts/**'
jobs:
validate-chart-versions:
uses: ./.github/workflows/validate-chart-versions.yml
with:
base_ref: origin/${{ github.base_ref }}
enforce_version_bump: true
lint-and-test:
runs-on: ubuntu-latest
needs: [validate-chart-versions]
strategy:
matrix:
chart:
- name: runtime-api
path: charts/runtime-api
- name: image-loader
path: charts/image-loader
- name: openhands
path: charts/openhands
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: 'latest'
- name: Lint ${{ matrix.chart.name }} chart
run: |
echo "Testing ${{ matrix.chart.name }} chart"
echo "Updating dependencies for ${{ matrix.chart.name }}"
helm dependency update ${{ matrix.chart.path }}
echo "Running helm lint for ${{ matrix.chart.name }}"
helm lint ${{ matrix.chart.path }}
if [ $? -ne 0 ]; then
echo "Helm lint failed for ${{ matrix.chart.name }}"
exit 1
fi
echo "Helm lint passed for ${{ matrix.chart.name }}"
- name: Template ${{ matrix.chart.name }} chart
run: |
echo "Running helm template for ${{ matrix.chart.name }}"
helm template ${{ matrix.chart.path }} --debug
if [ $? -ne 0 ]; then
echo "Helm template failed for ${{ matrix.chart.name }}"
exit 1
fi
echo "Helm template passed for ${{ matrix.chart.name }}"