forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
191 lines (161 loc) · 5.73 KB
/
screener-run.yml
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
name: Screener run
on:
workflow_run:
workflows:
- Screener build
types:
- completed
env:
AZURE_STORAGE_CONNECTION_STRING: ${{secrets.AZURE_STORAGE_CONNECTION_STRING}}
jobs:
screener-react-northstar:
runs-on: 'ubuntu-latest'
name: Screener @fluentui/react-northstar
steps:
- uses: actions/checkout@v3
with:
ref: ${{github.event.workflow_run.head_branch}}
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 14.18.1
cache: 'yarn'
- name: Download environment variables artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: screener-build.yml
workflow_conclusion: success
name: env-artifact
- name: Download N* storybook artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: screener-build.yml
workflow_conclusion: success
name: northstar-artifact
# downloads artifact to where it would be 'built'
path: packages/fluentui/docs/dist
- name: Define env variables
run: |
input_file="environment"
while read line
do
echo "$line" >> $GITHUB_ENV
done < "$input_file"
- name: Log environment variables (Linux)
if: runner.os == 'Linux'
run: |
printenv | sort ;\
echo "SHELLOPTS $SHELLOPTS" ;\
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Upload N* VR test site
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch -d '$web/${{env.DEPLOYBASEPATH}}/react-northstar-screener' -s 'packages/fluentui/docs/dist' --overwrite
- name: Start @fluentui/react-northstar VR Test
run: yarn workspace @fluentui/docs vr:test
env:
SCREENER_ENDPOINT: ${{secrets.SCREENER_ENDPOINT}}
SCREENER_PROXY_ENDPOINT: ${{secrets.SCREENER_PROXY_ENDPOINT}}
SCREENER_API_KEY: ${{secrets.SCREENER_API_KEY}}
screener-react:
runs-on: 'ubuntu-latest'
name: Screener @fluentui/react
steps:
- uses: actions/checkout@v3
with:
ref: ${{github.event.workflow_run.head_branch}}
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 14.18.1
cache: 'yarn'
- name: Download environment variables artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: screener-build.yml
workflow_conclusion: success
name: env-artifact
- name: Download screener storybook artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: screener-build.yml
workflow_conclusion: success
name: screener-artifact
path: apps/vr-tests/dist/storybook
- name: Define env variables
run: |
input_file="environment"
while read line
do
echo "$line" >> $GITHUB_ENV
done < "$input_file"
- name: Log environment variables (Linux)
if: runner.os == 'Linux'
run: |
printenv | sort ;\
echo "SHELLOPTS $SHELLOPTS" ;\
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Upload @fluentui/react VR test site
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch -d '$web/${{env.DEPLOYBASEPATH}}/react-screener' -s 'apps/vr-tests/dist/storybook' --overwrite
- name: Start @fluentui/react VR Test
run: yarn workspace @fluentui/vr-tests screener
env:
SCREENER_ENDPOINT: ${{secrets.SCREENER_ENDPOINT}}
SCREENER_PROXY_ENDPOINT: ${{secrets.SCREENER_PROXY_ENDPOINT}}
SCREENER_API_KEY: ${{secrets.SCREENER_API_KEY}}
screener-react-components:
runs-on: 'ubuntu-latest'
name: Screener @fluentui/react-components
steps:
- uses: actions/checkout@v3
with:
ref: ${{github.event.workflow_run.head_branch}}
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 14.18.1
cache: 'yarn'
- name: Download environment variables artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: screener-build.yml
workflow_conclusion: success
name: env-artifact
- name: Download VNext storybook artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: screener-build.yml
workflow_conclusion: success
name: vnext-artifact
path: apps/vr-tests-react-components/dist/storybook
- name: Define env variables
run: |
input_file="environment"
while read line
do
echo "$line" >> $GITHUB_ENV
done < "$input_file"
- name: Log environment variables (Linux)
if: runner.os == 'Linux'
run: |
printenv | sort ;\
echo "SHELLOPTS $SHELLOPTS" ;\
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Upload @fluentui/react-components VR test site
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch -d '$web/${{env.DEPLOYBASEPATH}}/react-components-screener' -s 'apps/vr-tests-react-components/dist/storybook' --overwrite
- name: Start @fluentui/react-components VR Test
run: yarn workspace @fluentui/vr-tests-react-components screener
env:
SCREENER_ENDPOINT: ${{secrets.SCREENER_ENDPOINT}}
SCREENER_PROXY_ENDPOINT: ${{secrets.SCREENER_PROXY_ENDPOINT}}
SCREENER_API_KEY: ${{secrets.SCREENER_API_KEY}}