mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
feat: add example build workflows
This commit is contained in:
37
.github/workflows/ios-build-test.yml
vendored
Normal file
37
.github/workflows/ios-build-test.yml
vendored
Normal file
@@ -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