From be820b4df22e019d8424b886d3c848adceb80661 Mon Sep 17 00:00:00 2001 From: Glavatskikh Denis Date: Thu, 17 Oct 2024 11:16:51 +0200 Subject: [PATCH] release/3.4.0-beta.1: add test.yml; --- .github/workflows/test.yml | 55 ++++++++++++++++++++++++++++++++++++++ package.json | 3 +-- 2 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7c1df3f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,55 @@ +name: Test React Native Compatibility + +on: [ push, pull_request ] + +jobs: + test-android: + strategy: + matrix: + react-native: [ 0.67.0, 0.69.0, 0.71.0 ] + node-version: [ 16.x ] + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: | + cd example + npm install --legacy-peer-deps + npm install react-native@${{ matrix.react-native }} --legacy-peer-deps + + - name: Build Android in Example + run: | + cd example/android + ./gradlew assembleDebug + +# test-ios: +# strategy: +# matrix: +# react-native: [ 0.67.0, 0.69.0, 0.71.0 ] +# node-version: [ 16.x ] +# runs-on: macos-latest # Запуск на macOS +# +# steps: +# - uses: actions/checkout@v3 +# - name: Setup Node.js +# uses: actions/setup-node@v3 +# with: +# node-version: ${{ matrix.node-version }} +# +# - name: Install dependencies +# run: | +# cd example +# npm install --legacy-peer-deps +# npm install react-native@${{ matrix.react-native }} --legacy-peer-deps +# +# - name: Build iOS in Example +# run: | +# cd example/ios +# pod install +# xcodebuild -workspace example.xcworkspace -scheme example -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11' build diff --git a/package.json b/package.json index 95192d6..eda85ac 100644 --- a/package.json +++ b/package.json @@ -7,13 +7,12 @@ "url": "git+https://github.com/appodeal/react-native-appodeal.git" }, "homepage": "https://appodeal.com", - "main": "src/index", + "main": "src/index.ts", "directories": { "example": "example" }, "scripts": { "tsc": "tsc --project .", - "lint": "tslint --project .", "prepare": "npm run tsc" }, "author": "Appodeal ",