forked from keptn/lifecycle-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.88 KB
/
integration-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
name: Integration-Test
on:
workflow_call:
inputs:
runtime_tag:
description: "Tag for the deno and python runner images"
type: "string"
required: true
scheduling-gates:
description: "Decides whether to use scheduling gates"
type: "string"
default: gates_off
cert-manager-io-enabled:
description: "Decides whether to use cert-manager.io"
type: "string"
default: "cert_manager_io_off"
# Declare default permissions as read only.
permissions: read-all
env:
GO_VERSION: "~1.23"
defaults:
run:
shell: bash
jobs:
run-integration-test:
name: Run Chainsaw Tests
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup cluster
uses: ./.github/actions/deploy-keptn-on-cluster
with:
runtime_tag: ${{ inputs.runtime_tag }}
values-file: values-integration-${{ inputs.scheduling-gates }}-${{ inputs.cert-manager-io-enabled }}.yaml
cert-manager-io-enabled: ${{ inputs.cert-manager-io-enabled }}
- name: Install and expose Prometheus
uses: ./.github/actions/deploy-prometheus-on-cluster
- name: Install Chainsaw
uses: kyverno/action-install-chainsaw@82d8e747037f840e0ef9bdd97ecdc617f5535bdc # v0.2.8
- name: Run Integration Tests
working-directory: .
run: make integration-test
- name: Create reports
if: failure()
working-directory: ./.github/scripts
run: ./create-reports-full.sh
- name: Upload cluster logs
if: failure()
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: logs-integration-tests-${{ inputs.scheduling-gates }}-${{ inputs.cert-manager-io-enabled }}
path: .github/scripts/logs