Skip to content

Commit

Permalink
feat: add Example app build workflows
Browse files Browse the repository at this point in the history
Added CI jobs for building Example app in order to check the validity of native code.
  • Loading branch information
WoLewicki authored Feb 21, 2022
2 parents 25a6eb5 + bcc9e1d commit c42c9eb
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/android-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test Android build
on:
pull_request:
branches:
- develop
paths:
- 'android/**'
push:
branches:
- develop
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
WORKING_DIRECTORY: Example
concurrency:
group: android-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
cache: 'yarn'
cache-dependency-path: 'Example/yarn.lock'
- name: Install node dependencies
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn
- name: Build app
working-directory: ${{ env.WORKING_DIRECTORY }}/android
run: ./gradlew assembleDebug --console=plain
37 changes: 37 additions & 0 deletions .github/workflows/ios-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test iOS build
on:
pull_request:
branches:
- develop
paths:
- 'apple/**'
push:
branches:
- develop
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
env:
WORKING_DIRECTORY: Example
concurrency:
group: ios-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
cache: 'yarn'
cache-dependency-path: 'Example/yarn.lock'
- name: Install node dependencies
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn
- name: Install pods
working-directory: ${{ env.WORKING_DIRECTORY }}/ios
run: pod install
- name: Build app
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn ios

0 comments on commit c42c9eb

Please sign in to comment.