|
| 1 | +name: workflow — trigger pull request quality assurance |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: [master] |
| 6 | + |
| 7 | +jobs: |
| 8 | + changes: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + outputs: |
| 11 | + subscriptions: ${{ steps.filter.outputs.subscriptions }} |
| 12 | + stores: ${{ steps.filter.outputs.stores }} |
| 13 | + profiles: ${{ steps.filter.outputs.profiles }} |
| 14 | + payments: ${{ steps.filter.outputs.payments }} |
| 15 | + orders: ${{ steps.filter.outputs.orders }} |
| 16 | + orchestrator: ${{ steps.filter.outputs.orchestrator }} |
| 17 | + |
| 18 | + steps: |
| 19 | + - name: checkout |
| 20 | + uses: actions/checkout@v4 |
| 21 | + |
| 22 | + - name: detect changed paths |
| 23 | + id: filter |
| 24 | + uses: dorny/paths-filter@v3 |
| 25 | + with: |
| 26 | + filters: | |
| 27 | + subscriptions: |
| 28 | + - 'Boundaries/Comanda.Subscriptions/**' |
| 29 | + stores: |
| 30 | + - 'Boundaries/Comanda.Stores/**' |
| 31 | + profiles: |
| 32 | + - 'Boundaries/Comanda.Profiles/**' |
| 33 | + payments: |
| 34 | + - 'Boundaries/Comanda.Payments/**' |
| 35 | + orders: |
| 36 | + - 'Boundaries/Comanda.Orders/**' |
| 37 | + orchestrator: |
| 38 | + - 'Boundaries/Comanda.Orchestrator/**' |
| 39 | +
|
| 40 | + quality-assurance-subscriptions: |
| 41 | + needs: changes |
| 42 | + if: needs.changes.outputs.subscriptions == 'true' |
| 43 | + uses: ./.github/workflows/reusable-quality-assurance.yml |
| 44 | + with: |
| 45 | + service_path: Boundaries/Comanda.Subscriptions |
| 46 | + |
| 47 | + quality-assurance-stores: |
| 48 | + needs: changes |
| 49 | + if: needs.changes.outputs.stores == 'true' |
| 50 | + uses: ./.github/workflows/reusable-quality-assurance.yml |
| 51 | + with: |
| 52 | + service_path: Boundaries/Comanda.Stores |
| 53 | + |
| 54 | + quality-assurance-profiles: |
| 55 | + needs: changes |
| 56 | + if: needs.changes.outputs.profiles == 'true' |
| 57 | + uses: ./.github/workflows/reusable-quality-assurance.yml |
| 58 | + with: |
| 59 | + service_path: Boundaries/Comanda.Profiles |
| 60 | + |
| 61 | + quality-assurance-payments: |
| 62 | + needs: changes |
| 63 | + if: needs.changes.outputs.payments == 'true' |
| 64 | + uses: ./.github/workflows/reusable-quality-assurance.yml |
| 65 | + with: |
| 66 | + service_path: Boundaries/Comanda.Payments |
| 67 | + |
| 68 | + quality-assurance-orders: |
| 69 | + needs: changes |
| 70 | + if: needs.changes.outputs.orders == 'true' |
| 71 | + uses: ./.github/workflows/reusable-quality-assurance.yml |
| 72 | + with: |
| 73 | + service_path: Boundaries/Comanda.Orders |
| 74 | + |
| 75 | + quality-assurance-orchestrator: |
| 76 | + needs: changes |
| 77 | + if: needs.changes.outputs.orchestrator == 'true' |
| 78 | + uses: ./.github/workflows/reusable-quality-assurance.yml |
| 79 | + with: |
| 80 | + service_path: Boundaries/Comanda.Orchestrator |
0 commit comments