forked from hivemq/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.53 KB
/
verify.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
name: Verify
on:
pull_request:
branches:
- "**"
workflow_dispatch:
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout HiveMQ Helm Charts
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Set up Helm
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4
- name: Add dependency chart repos
run: |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
- name: Update chart dependencies
run: |
helm dependency update ./charts/hivemq-platform
helm dependency update ./charts/hivemq-platform-operator
helm dependency update ./charts/hivemq-operator
helm dependency update ./charts/hivemq-swarm
- name: Lint
run: |
helm lint ./charts/hivemq-platform
helm lint ./charts/hivemq-platform-operator
helm lint ./charts/hivemq-operator
helm lint ./charts/hivemq-swarm
- name: Unit Test
uses: d3adb5/helm-unittest-action@66140cd099aa6c4f2ebc59735b8e421135a6d4e3 # v2.4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flags: --file './tests/**/*_test.yaml'
- name: Check manifests are up-to-date
run: |
./manifests/hivemq-operator/manifests.sh
./manifests/hivemq-platform-operator/manifests.sh
./manifests/hivemq-platform/manifests.sh
./manifests/hivemq-swarm/manifests.sh
git diff HEAD --exit-code