-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (25 loc) · 1.04 KB
/
check-charts.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
# Workflow to test `helm lint` and `helm package` on local version of charts
# The workflow changes the dependency between the charts to use the local version
# on the repo to allow linting untagged changes to both parent and child charts.
name: Check Charts
on:
# Allow calling this workflow from other workflows
workflow_call:
# Allow triggering this workflow manually from the github UI
workflow_dispatch:
# Triggers check on pull requests
pull_request:
branches:
- master
- qa
jobs:
check_charts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Temporarily change swan-cern to use local file://../swan
uses: mikefarah/yq@1f0881fb5faf371694bfa108753cda0b824f5037 # v4.28.2
with:
cmd: yq -i '(.dependencies[] | select(.name == "swan")).repository = "file://../swan"' swan-cern/Chart.yaml
- run: helm dependency update swan && helm lint swan && helm package swan
- run: helm dependency update swan-cern && helm lint swan-cern && helm package swan-cern