Skip to content

Commit 2ee90ce

Browse files
feat: add quality assurance workflow for pull requests
1 parent ad9df2e commit 2ee90ce

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: workflow - trigger pull request quality assurance
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
changes:
10+
runs-on: ubuntu-latest
11+
outputs:
12+
backend: ${{ steps.filter.outputs.backend }}
13+
federation_sdk: ${{ steps.filter.outputs.federation_sdk }}
14+
federation_sdk_contracts: ${{ steps.filter.outputs.federation_sdk_contracts }}
15+
16+
steps:
17+
- name: checkout
18+
uses: actions/checkout@v4
19+
20+
- name: detect changed paths
21+
id: filter
22+
uses: dorny/paths-filter@v3
23+
with:
24+
filters: |
25+
backend:
26+
- 'Applications/Backend/**'
27+
federation_sdk:
28+
- 'Packages/Federation.Sdk/**'
29+
federation_sdk_contracts:
30+
- 'Packages/Federation.Sdk.Contracts/**'
31+
32+
quality-assurance-backend:
33+
needs: changes
34+
if: needs.changes.outputs.backend == 'true'
35+
uses: ./.github/workflows/reusable-quality-assurance.yml
36+
with:
37+
service_path: Applications/Backend
38+
39+
quality-assurance-federation-sdk:
40+
needs: changes
41+
if: needs.changes.outputs.federation_sdk == 'true'
42+
uses: ./.github/workflows/reusable-quality-assurance.yml
43+
with:
44+
service_path: Packages/Federation.Sdk
45+
46+
quality-assurance-federation-sdk-contracts:
47+
needs: changes
48+
if: needs.changes.outputs.federation_sdk_contracts == 'true'
49+
uses: ./.github/workflows/reusable-quality-assurance.yml
50+
with:
51+
service_path: Packages/Federation.Sdk.Contracts

0 commit comments

Comments
 (0)