Merge pull request #85 from argyle-systems/bump-sdks-to-5-4-0 #23
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: build-android-apk | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
jobs: | |
install-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install npm dependencies | |
run: | | |
cd example | |
npm install | |
build: | |
needs: install-and-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install npm dependencies | |
run: | | |
cd example | |
npm install | |
- name: Overwrite index.js | |
run: | | |
cd example | |
rm index.js | |
mv json-demo-build.js index.js | |
- name: Overwrite node module | |
run: | | |
rsync -Rr . example/node_modules/@argyleio/argyle-plugin-react-native | |
- name: Build Android Release | |
run: | | |
cd example/android | |
./gradlew assembleRelease | |
- name: Archive APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: apk-app-development-release | |
path: example/android/app/build/outputs/apk/release/app-release.apk | |
- name: Upload app to browserstack | |
run: | | |
curl -u ${{ secrets.ARGYLE_MOBILE_RUN_BS_USER }}:${{ secrets.ARGYLE_MOBILE_RUN_BS_KEY }} -X POST "https://api-cloud.browserstack.com/app-automate/upload" -F "file=@example/android/app/build/outputs/apk/release/app-release.apk" -F 'data={"custom_id": "android_react_latest"}' | |
trigger-auto-tests: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: convictional/[email protected] | |
with: | |
owner: argyle-systems | |
repo: argyle-qa-mobile | |
workflow_file_name: test_dev_rn_android.yaml | |
ref: master | |
client_payload: '{"id": "auto-trigger-android-rn-tests"}' | |
github_token: ${{ secrets.ARGYLE_LINK_QA_WORKFLOW_TRIGGER }} | |
wait_workflow: false |