forked from kyma-project/api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.53 KB
/
call-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
# 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: PR Integration
on:
workflow_call:
jobs:
changed-files:
name: Changed files
runs-on: ubuntu-latest
outputs:
any_modified: ${{ steps.changed-files.outputs.any_modified }}
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
external-images.yaml
integration-tests:
name: Integration tests
runs-on: ubuntu-latest
needs: [ changed-files ]
if: needs.changed-files.outputs.any_modified == 'true'
strategy:
fail-fast: false
matrix:
test_make_target: [ "test-integration-ory", "test-integration-istio", "test-integration-v2alpha1", "test-integration-gateway" ]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: ./.github/actions/load-manager-image
- uses: ./.github/actions/e2e-test-k3d
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
manager_image: "api-gateway-manager:PR-${{github.event.number}}"
test_make_target: ${{ matrix.test_make_target }}