-
Notifications
You must be signed in to change notification settings - Fork 137
86 lines (81 loc) · 2.8 KB
/
e2e-tests-ondemand.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: E2E tests ondemand
on:
schedule:
# every Mon/Wed/Fri at 08:00 UTC
- cron: 0 8 * * 1,3,5
workflow_dispatch:
inputs:
target:
description: 'Target branch to run E2E tests over'
required: true
default: 'release-1.1'
permissions:
checks: write
# based on:
# https://docs.dynatrace.com/docs/setup-and-configuration/technology-support/support-model-for-kubernetes
# https://kubernetes.io/releases/
jobs:
run-matrix:
name: Run using version/platform
strategy:
# we don't want to cancel all in-progress jobs if any matrix job fails.
fail-fast: false
max-parallel: 4
matrix:
include:
- version: 1-24
platform: k8s
- version: 1-25
platform: k8s
- version: 1-26
platform: k8s
- version: 1-27
platform: k8s
- version: 1-28
platform: k8s
- version: 1-29
platform: k8s
- version: 4-10
platform: ocp
- version: 4-11
platform: ocp
- version: 4-12
platform: ocp
- version: 4-13
platform: ocp
environment: E2E
runs-on:
- self-hosted
- operator-e2e
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Run e2e test
uses: ./.github/actions/run-e2e
with:
flc-namespace: ${{ format('dto-{0}-ondemand', matrix.platform ) }}
flc-environment: ${{ format('dto-{0}-{1}', matrix.platform, matrix.version ) }}
target-branch: ${{ github.event.inputs.target }}
tenant1-name: ${{ secrets.TENANT1_NAME }}
tenant1-apitoken: ${{ secrets.TENANT1_APITOKEN }}
tenant1-oteltoken: ${{ secrets.TENANT1_OTELTOKEN }}
tenant1-oauth-client-id: ${{ secrets.TENANT1_OAUTH_CLIENT_ID }}
tenant1-oauth-secret: ${{ secrets.TENANT1_OAUTH_SECRET }}
tenant1-oauth-urn: ${{ secrets.TENANT1_OAUTH_URN }}
tenant2-name: ${{ secrets.TENANT2_NAME }}
tenant2-apitoken: ${{ secrets.TENANT2_APITOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
notify-failure:
name: Notify failure in Slack
environment: E2E
needs: [ "run-matrix" ]
if: ${{ failure() || cancelled() }}
runs-on: ubuntu-latest
steps:
- name: Notify failure in Slack
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
with:
channel-id: 'int-cp-operator'
slack-message: ":x: E2E ondemand tests failed on ${{ github.event.inputs.target || 'main' }} branch (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}