feat: add example build workflows

This commit is contained in:
Wojciech Lewicki
2022-02-21 16:33:40 +01:00
parent 522c2e31f8
commit eb5543b3e5
2 changed files with 71 additions and 0 deletions

37
.github/workflows/ios-build-test.yml vendored Normal file
View 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