-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (78 loc) · 4.17 KB
/
agh3-playground-test.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: ⚙️ [AGH3-Playground] 🧪 Test
on:
pull_request:
branches:
- main
paths:
- charts/playground/**
- .github/workflows/agh3-playground-release.yml
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 🔔 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ⚙️ Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: 🪝 Install Helm
uses: azure/setup-helm@v4
with:
version: v3.14.4
- name: 📦 Add Helm dependency repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
- name: 🧪 Run chart-linting
run: |
helm dependency build charts/playground
helm lint charts/playground
- name: 🧪 Run chart-testing -> internal mode (default)
run: |
helm dependency build charts/playground
helm template agh charts/playground \
--set customRegistrySecret.auth.username='robot$ci-test-lkc-lab+foo' \
--set customRegistrySecret.auth.password='ci-test-9e1e8ee7-edba-49d9-9cae-2dabf522d4d1' \
--set playground.secret.firebase.apiKey='ci-test-firebase--api-key' \
--set playground.secret.firebase.authDomain='ci-test-firebase.firebaseapp.com' \
--set playground.secret.firebase.projectId='ci-test-firebase' \
--set playground.secret.firebase.storageBucket='ci-test-firebase.appspot.com' \
--set playground.secret.firebase.messagingSenderId='ci-test-firebase-sender-id' \
--set playground.secret.firebase.appId='1:ci-test-firebase-sender-id:web:ci-test-firebase-app-id' \
--set playground.secret.firebase.measurementId='G-CI_TEST_CODE' \
-n agh3-playground
- name: 🧪 Run chart-testing -> internal mode with custom namespace
run: |
helm dependency build charts/playground
helm template agh charts/playground \
--set customRegistrySecret.auth.username='robot$ci-test-lkc-lab+foo' \
--set customRegistrySecret.auth.password='ci-test-9e1e8ee7-edba-49d9-9cae-2dabf522d4d1' \
--set playground.service.backendRef.namespace='agh3-prod' \
--set playground.service.backendRef.kind='Service' \
--set playground.secret.firebase.apiKey='ci-test-firebase--api-key' \
--set playground.secret.firebase.authDomain='ci-test-firebase.firebaseapp.com' \
--set playground.secret.firebase.projectId='ci-test-firebase' \
--set playground.secret.firebase.storageBucket='ci-test-firebase.appspot.com' \
--set playground.secret.firebase.messagingSenderId='ci-test-firebase-sender-id' \
--set playground.secret.firebase.appId='1:ci-test-firebase-sender-id:web:ci-test-firebase-app-id' \
--set playground.secret.firebase.measurementId='G-CI_TEST_CODE' \
-n agh3-playground
- name: 🧪 Run chart-testing -> external mode
run: |
helm dependency build charts/playground
helm template agh charts/playground \
--set customRegistrySecret.auth.username='robot$ci-test-lkc-lab+foo' \
--set customRegistrySecret.auth.password='ci-test-9e1e8ee7-edba-49d9-9cae-2dabf522d4d1' \
--set playground.service.backendRef.kind='ExternalService' \
--set playground.service.backendRef.endpoint='example.com/api/v1' \
--set playground.secret.firebase.apiKey='ci-test-firebase--api-key' \
--set playground.secret.firebase.authDomain='ci-test-firebase.firebaseapp.com' \
--set playground.secret.firebase.projectId='ci-test-firebase' \
--set playground.secret.firebase.storageBucket='ci-test-firebase.appspot.com' \
--set playground.secret.firebase.messagingSenderId='ci-test-firebase-sender-id' \
--set playground.secret.firebase.appId='1:ci-test-firebase-sender-id:web:ci-test-firebase-app-id' \
--set playground.secret.firebase.measurementId='G-CI_TEST_CODE' \
-n agh3-playground