-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (57 loc) · 2.16 KB
/
quality-assurance-pipeline.yml
File metadata and controls
65 lines (57 loc) · 2.16 KB
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
name: pipeline ci/cd — trigger pull request quality assurance
on:
pull_request:
branches:
- master
jobs:
changes:
runs-on: ubuntu-latest
outputs:
federation_backend: ${{ steps.filter.outputs.federation_backend }}
federation_proxy: ${{ steps.filter.outputs.federation_proxy }}
federation_contracts: ${{ steps.filter.outputs.federation_contracts }}
federation_sdk: ${{ steps.filter.outputs.federation_sdk }}
steps:
- name: checkout
uses: actions/checkout@v5
- name: detect changed paths
id: filter
uses: dorny/paths-filter@v4
with:
filters: |
federation_backend:
- 'Applications/Backend/**'
federation_proxy:
- 'Applications/Proxy/**'
federation_contracts:
- 'Packages/Federation.Sdk.Contracts/**'
federation_sdk:
- 'Packages/Federation.Sdk/**'
# run build and tests for federation backend if there are changes in the corresponding path
quality-assurance-backend:
needs: changes
if: needs.changes.outputs.federation_backend == 'true'
uses: ./.github/workflows/template-quality-assurance.yml
with:
service_path: Applications/Backend
# run build and tests for federation proxy if there are changes in the corresponding path
quality-assurance-proxy:
needs: changes
if: needs.changes.outputs.federation_proxy == 'true'
uses: ./.github/workflows/template-quality-assurance.yml
with:
service_path: Applications/Proxy
# run build and tests for federation contracts if there are changes in the corresponding path
quality-assurance-contracts:
needs: changes
if: needs.changes.outputs.federation_contracts == 'true'
uses: ./.github/workflows/template-quality-assurance.yml
with:
service_path: Packages/Federation.Sdk.Contracts
# run build and tests for federation sdk if there are changes in the corresponding path
quality-assurance-sdk:
needs: changes
if: needs.changes.outputs.federation_sdk == 'true'
uses: ./.github/workflows/template-quality-assurance.yml
with:
service_path: Packages/Federation.Sdk