-
Notifications
You must be signed in to change notification settings - Fork 17
37 lines (35 loc) · 1.16 KB
/
ci.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
name: CI
on:
push:
branches:
- "*"
tags:
- "v*"
pull_request:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-latest
steps:
# Adapted from https://github.com/d3adb5/helm-unittest-action/
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
- name: Install helm-unittest
run: helm plugin install https://github.com/helm-unittest/helm-unittest
- name: Set chart directories to test as environment variable
run: |
echo "CHARTS_TO_TEST=$(find . -type f -name 'Chart.yaml' -exec dirname {} \; | tr '\n' ' ')" >> $GITHUB_ENV
- name: Run unit tests
run: helm unittest --color ${{ env.CHARTS_TO_TEST }}
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Check that the contents of common-values.yaml are included in values.yaml
run: |
make check-common-values
- name: Run shellcheck in the shell scripts
run: |
make shellcheck