-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
windows: github workflow to test example app
- Loading branch information
1 parent
61589a3
commit 601a293
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Windows CI | ||
on: [pull_request] | ||
|
||
jobs: | ||
run-windows-tests: | ||
name: Build & run tests | ||
runs-on: windows-2019 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout Code | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.9.1' | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v1 | ||
with: | ||
vs-version: 16.8 | ||
|
||
- name: Install example modules | ||
run: | | ||
cd examples | ||
yarn --pure-lockfile | ||
- name: Build release | ||
run: | | ||
cd examples | ||
npx react-native run-windows --release --no-packager --no-launch --logging | ||
- name: Start Appium server | ||
shell: powershell | ||
run: | | ||
cd examples | ||
Start-Process PowerShell -ArgumentList "yarn appium" | ||
- name: Run tests | ||
run: | | ||
cd examples | ||
yarn test:windows |