Java 17 upgrade #385
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: ['*'] | |
| pull_request: | |
| jobs: | |
| build-android: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - uses: android-actions/setup-android@v3 | |
| - run: sdkmanager "ndk;27.1.12297006" | |
| - run: npm i -g electrode-native | |
| - uses: actions/checkout@v3 | |
| with: | |
| repository: r0h0gg6/electrode-native | |
| ref: upgrade-rn-0.77 | |
| path: electrode-native | |
| - name: Verify electrode-native branch | |
| working-directory: electrode-native/ | |
| run: | | |
| echo "Current branch/ref:" | |
| git branch -a | |
| git log --oneline -n 5 | |
| echo "Remote URL:" | |
| git remote -v | |
| - working-directory: electrode-native/ | |
| run: node setup-dev.js | |
| - run: ern platform use 1000.0.0 | |
| - run: yarn --frozen-lockfile | |
| - working-directory: android/ | |
| run: ./gradlew createAndPublishErnDevContainer | |
| - working-directory: android/ | |
| run: ./gradlew assembleDebug test lint | |
| build-ios: | |
| runs-on: macos-10.15 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '12.4.0' | |
| - run: npm i -g electrode-native | |
| - uses: actions/checkout@v3 | |
| with: | |
| repository: r0h0gg6/electrode-native | |
| ref: upgrade-rn-0.77 | |
| path: electrode-native | |
| - name: Verify electrode-native branch (iOS) | |
| working-directory: electrode-native/ | |
| run: | | |
| echo "Current branch/ref:" | |
| git branch -a | |
| git log --oneline -n 5 | |
| echo "Remote URL:" | |
| git remote -v | |
| - working-directory: electrode-native/ | |
| run: node setup-dev.js | |
| - run: ern platform use 1000.0.0 | |
| - run: yarn --frozen-lockfile | |
| - working-directory: ios/ | |
| run: ern create-container -p ios --out ${PWD}/container -m https://github.com/electrode-io/movies-reloaded-miniapp#java-17-upgrade | |
| - working-directory: ios/container/ | |
| run: xcodebuild -workspace "ElectrodeContainer.xcworkspace" -scheme "ElectrodeContainer" -destination "platform=iOS Simulator,name=iPhone 11" |