Skip to content

Commit b3ba4c4

Browse files
windows: github workflow to test example app
1 parent 61589a3 commit b3ba4c4

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Windows CI
2+
on: [pull_request]
3+
4+
jobs:
5+
run-windows-tests:
6+
name: Build & run tests
7+
runs-on: windows-2019
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
name: Checkout Code
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: '12.9.1'
17+
18+
- name: Setup MSBuild
19+
uses: microsoft/setup-msbuild@v1
20+
with:
21+
vs-version: 16.8
22+
23+
- name: Install example modules
24+
run: |
25+
cd example
26+
yarn --pure-lockfile
27+
- name: Build release
28+
run: |
29+
cd example
30+
npx react-native run-windows --release --no-packager --no-launch --logging
31+
- name: Start Appium server
32+
shell: powershell
33+
run: |
34+
cd example
35+
Start-Process PowerShell -ArgumentList "yarn appium"
36+
- name: Run tests
37+
run: |
38+
cd example
39+
yarn test:windows

0 commit comments

Comments
 (0)