[Draft] Add CI #1
Workflow file for this run
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
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: '^18' | |
- name: Setup MSBuild | |
uses: microsoft/[email protected] | |
- name: Check node modules cache | |
uses: actions/cache@v1 | |
id: yarn-cache | |
with: | |
path: ./node_modules | |
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install node modules | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn --pure-lockfile | |
- name: yarn build | |
if: steps.yarn-cache.outputs.cache-hit == 'true' | |
run: | | |
yarn build | |
yarn tsc | |
- name: Build x64 release | |
shell: powershell | |
run: npx react-native run-windows --root example --arch x64 --release --no-packager --no-deploy --logging |