release/3.4.0-beta.1: add test.yml; #1
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: Test React Native Compatibility | |
on: [ push, pull_request ] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
react-native: [ 0.67.0, 0.69.0, 0.71.0 ] | |
node-version: [ 16.x ] | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the repository | |
- uses: actions/checkout@v3 | |
# Install Node.js | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# Install dependencies for the example app | |
- name: Install dependencies | |
run: | | |
cd example | |
npm install --legacy-peer-deps | |
npm install react-native@${{ matrix.react-native }} --legacy-peer-deps | |
# Run Android build | |
- name: Build Android in Example | |
run: | | |
cd example/android | |
./gradlew assembleDebug | |
# Run iOS build | |
- name: Build iOS in Example | |
if: runner.os == 'macOS' | |
run: | | |
cd example/ios | |
pod install | |
xcodebuild -workspace example.xcworkspace -scheme example -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11' build |