Update Utilities.test.ts #240
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: in-app-payment-react-native-plugin | |
on: [push] | |
jobs: | |
install-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 18.x | |
- run: | | |
yarn && yarn lint && yarn test | |
cd react-native-in-app-payments-quickstart && yarn && yarn lint && cd .. | |
build-android: | |
needs: install-and-test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache Gradle Wrapper | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | |
- name: Cache Gradle Dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle-caches- | |
- name: Install npm dependencies | |
uses: actions/checkout@v2 | |
- run: | | |
cd react-native-in-app-payments-quickstart && yarn | |
cd android && ./gradlew clean build | |
build-ios: | |
needs: install-and-test | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- run: | | |
gem install cocoapods | |
cd react-native-in-app-payments-quickstart | |
yarn | |
cd ios && pod install | |
- name: Build iOS (debug) | |
run: "xcodebuild \ | |
-workspace react-native-in-app-payments-quickstart/ios/RNInAppPaymentsQuickstart.xcworkspace \ | |
-scheme RNInAppPaymentsQuickstart \ | |
clean archive \ | |
-sdk iphoneos \ | |
-configuration Debug \ | |
-UseModernBuildSystem=NO \ | |
-archivePath $PWD/RNInAppPaymentsQuickstart \ | |
CODE_SIGNING_ALLOWED=NO" |