E2E Tests #823
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |