forked from Enapter/charts
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (36 loc) · 1.12 KB
/
pr.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
name: Pull Request
on:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
helm-chart:
runs-on: elisa-normal
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v4
with:
python-version: '3.12'
check-latest: true
- uses: azure/setup-helm@v4
- uses: helm/[email protected]
- name: Lint chart
run: ct lint --chart-dirs keydb --charts keydb --validate-maintainers=false
- name: Create kind cluster
uses: helm/kind-action@v1
- name: Install required CRDs
run: kubectl apply -f keydb/test-crds/service-monitor.yaml
- name: Install chart
run: ct install --chart-dirs keydb --charts keydb --helm-extra-set-args "--set=topologySpreadConstraints="
- name: Notify failure
if: failure()
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_TEXT: "${{ github.repository }} PR build. Please check [here](${{ github.event.pull_request.html_url }}/checks)."
run: |
send-to-mattermost