ci: uci/copy-templates #176
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: ci | ||
env: | ||
CI: true | ||
FORCE_COLOR: 1 | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
test-react-native-android: | ||
runs-on: macos-latest | ||
needs: check | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npm install | ||
- uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 29 | ||
target: default | ||
arch: x86_64 | ||
profile: pixel | ||
avd-name: aegir-android-29 | ||
script: | | ||
npx aegir test -t react-native-android | ||
# test-react-native-ios: | ||
# runs-on: macos-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - run: npm install | ||
# - name: Create and run iOS simulator | ||
# run: | | ||
# SIMULATOR_RUNTIME=$(echo "iOS 14.4" | sed 's/[ \.]/-/g') | ||
# SIMULATOR_ID=$(xcrun simctl create "iPhone 11" com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.$SIMULATOR_RUNTIME) | ||
# echo "IOS_SIMULATOR=$SIMULATOR_ID" >> $GITHUB_ENV | ||
# xcrun simctl boot $SIMULATOR_ID & | ||
# - run: npx rn-test --platform ios --simulator 'iPhone 11 (14.4)' --rn 0.62.0 'test/**/*.spec.js' | ||
# - name: Shutdown iOS simulator | ||
# run: | | ||
# xcrun simctl shutdown $IOS_SIMULATOR |