-
Notifications
You must be signed in to change notification settings - Fork 25
106 lines (99 loc) · 3.62 KB
/
pull-integration.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# This workflow is responsible for all kinds of integration tests run on pull request.
# Those tests depend on a container image so in the first job we wait for the image build to succeed.
name: Pull Request integration tests
on:
workflow_call:
jobs:
changed-files:
outputs:
any_modified: ${{ steps.changed-files.outputs.any_modified }}
name: Check whether integration tests should run based on the changed files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tj-actions/changed-files@e9772d140489982e0e3704fea5ee93d536f1e275
id: changed-files
with:
files_ignore: |
docs/**
**/*.md
tests/performance/**
OWNERS
CODEOWNERS
sec-scanners-config.yaml
.reuse/**
external-images.yaml
k8s-compatibility-test:
name: Kubernetes version compatibility test
runs-on: ubuntu-latest
needs: [ changed-files ]
if: needs.changed-files.outputs.any_modified == 'true'
strategy:
fail-fast: false
matrix:
test_make_target: [ "configuration-integration-test", "mesh-communication-integration-test", "installation-integration-test", "observability-integration-test" ]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/load-manager-image
- uses: ./.github/actions/k8s-compatibility-test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
test_make_target: ${{ matrix.test_make_target }}
operator-image-name: "istio-manager:PR-${{github.event.number}}"
istio-upgrade-integration-test:
name: Istio upgrade integration test
runs-on: ubuntu-latest
needs: [ changed-files ]
if: needs.changed-files.outputs.any_modified == 'true'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/load-manager-image
- uses: ./.github/actions/upgrade-integration-test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
operator-image-name: "istio-manager:PR-${{github.event.number}}"
target_branch: ${{ github.base_ref }}
istio-integration-test:
name: Istio integration test
runs-on: ubuntu-latest
needs: [ changed-files ]
if: needs.changed-files.outputs.any_modified == 'true'
strategy:
fail-fast: false
matrix:
test_make_target: [ "configuration-integration-test", "mesh-communication-integration-test", "installation-integration-test", "observability-integration-test"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/load-manager-image
- uses: ./.github/actions/integration-test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
test_make_target: ${{ matrix.test_make_target }}
operator-image-name: "istio-manager:PR-${{github.event.number}}"
servers-memory: "16"
agents: 2
istio-integration-test-evaluation:
name: Istio integration test evaluation
runs-on: ubuntu-latest
needs: [ changed-files ]
if: needs.changed-files.outputs.any_modified == 'true'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/load-manager-image
- uses: ./.github/actions/integration-test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
test_make_target: "evaluation-integration-test"
operator-image-name: "istio-manager:PR-${{github.event.number}}"
servers-memory: "4"
agents: 0