-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (73 loc) · 1.99 KB
/
on_prs.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
name: Pull Requests
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
affected:
runs-on: ubuntu-latest
environment:
name: staging
outputs:
affected: ${{ steps.checkForAffected.outputs.affected }}
hasAffected: ${{ steps.checkForAffected.outputs.hasAffected }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup & Install
uses: ./.github/actions/setup-install
- name: Check for Affected Projects
uses: ./.github/actions/affected
id: checkForAffected
replay:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Replay
uses: ./.github/actions/replay
env:
PUPPETEER_CACHE_DIR: /root/.cache/puppeteer
with:
args: user-flows
articles-app:
needs: [affected]
if: contains(needs.affected.outputs.affected, 'articles-app')
uses: ./.github/workflows/workflow-mfe.yaml
secrets: inherit
with:
appName: articles-app
environment: staging
footer-app:
needs: [affected]
if: contains(needs.affected.outputs.affected, 'footer-app')
uses: ./.github/workflows/workflow-mfe.yaml
secrets: inherit
with:
appName: footer-app
environment: staging
header-app:
needs: [affected]
if: contains(needs.affected.outputs.affected, 'header-app')
uses: ./.github/workflows/workflow-mfe.yaml
secrets: inherit
with:
appName: header-app
environment: staging
profile-app:
needs: [affected]
if: contains(needs.affected.outputs.affected, 'profile-app')
uses: ./.github/workflows/workflow-mfe.yaml
secrets: inherit
with:
appName: profile-app
environment: staging
root-app:
needs: [affected]
if: contains(needs.affected.outputs.affected, 'root')
uses: ./.github/workflows/workflow-mfe.yaml
secrets: inherit
with:
appName: root
environment: staging