mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-09 01:25:01 +00:00
feat: add example build workflows
This commit is contained in:
@@ -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
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
name: Test iOS build
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
paths:
|
||||||
|
- 'ios/**'
|
||||||
|
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
|
||||||
Reference in New Issue
Block a user