-
-
Notifications
You must be signed in to change notification settings - Fork 107
68 lines (59 loc) · 1.63 KB
/
e2e.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
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
name: E2E Tests
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- master
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
k3s:
name: "k3s (experimental)"
runs-on: ubuntu-22.04
# NOTE: Just a thought in case the timeouts fail; might not be
# necessary, but might not hurt either, would vary based on the
# size of the testing matrix, too.
timeout-minutes: 30
strategy:
fail-fast: false
max-parallel: 1
matrix:
# TODO: Document which versions we support and cover them.
# https://github.com/StackStorm/stackstorm-k8s/issues/342
# https://github.com/k3s-io/k3s/releases
k3s-channel:
- "v1.28.3+k3s1"
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up K3s
id: k3s
uses: jupyterhub/action-k3s-helm@v3
with:
k3s-channel: ${{ matrix.k3s-channel }}
- name: Update stackstorm-ha chart dependencies
run: |
set -x
helm dependency update
- name: Helm install
run: |
helm install --timeout 15m0s --debug --wait \
--name-template stackstorm-ha .
- name: Helm test
run: |
helm test stackstorm-ha
- name: Helm upgrade with RBAC enabled
run: |
helm upgrade --set st2.rbac.enabled=true \
--timeout 10m0s --debug --wait stackstorm-ha .
- name: Helm test
run: |
helm test stackstorm-ha
- name: Show all Kubernetes resources
if: ${{ always() }}
run: |
kubectl get all