Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves CI checks #1065

Merged
merged 2 commits into from
Aug 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/android-build-test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
name: Test android build
name: Test Android build
on:
pull_request:
branches: [master]
branches:
- master
paths:
- 'android/**'
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
WORKING_DIRECTORY: TestsExample
concurrency:
group: android-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v2
Expand All @@ -14,8 +25,8 @@ jobs:
node-version: 14
cache: 'yarn'
- name: Install node dependencies
working-directory: TestsExample
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn
- name: Build app
working-directory: TestsExample/android
working-directory: ${{ env.WORKING_DIRECTORY }}/android
run: ./gradlew assembleDebug --console=plain
21 changes: 16 additions & 5 deletions .github/workflows/ios-build-test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
name: Test iOS build
on:
pull_request:
branches: [master]
branches:
- master
paths:
- 'ios/**'
push:
branches:
- master
jobs:
build:
runs-on: macos-latest
env:
WORKING_DIRECTORY: TestsExample
concurrency:
group: ios-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v2
Expand All @@ -15,11 +26,11 @@ jobs:
cache: 'yarn'
cache-dependency-path: 'TestsExample/yarn.lock'
- name: Install node dependencies
working-directory: TestsExample
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn
- name: Install pods
working-directory: TestsExample/ios
working-directory: ${{ env.WORKING_DIRECTORY }}/ios
run: pod install
- name: Build app
working-directory: TestsExample
run: xcodebuild -workspace ios/TestsExample.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 8' -scheme TestsExample -parallelizeTargets -configuration Debug -derivedDataPath ios/build -UseModernBuildSystem=YES -quiet | xcpretty
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn ios
18 changes: 12 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
name: Lint

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
install-and-lint:
runs-on: ubuntu-latest
concurrency:
group: install-and-lint-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
yarn
- name: checkout
uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
cache: 'yarn'
- name: Install node dependencies
run: yarn
- name: Format code
run: |
yarn format
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/tv-os-build-test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
name: Test tvOS build
on:
pull_request:
branches: [master]
branches:
- master
paths:
- 'ios/**'
push:
branches:
- master
jobs:
build:
runs-on: macos-latest
env:
WORKING_DIRECTORY: TVOSExample
concurrency:
group: ios-${{ github.ref }}
cancel-in-progress: true
steps:
- name: checkout
uses: actions/checkout@v2
Expand All @@ -15,11 +26,11 @@ jobs:
cache: 'yarn'
cache-dependency-path: 'TVOSExample/yarn.lock'
- name: Install node dependencies
working-directory: TVOSExample
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn
- name: Install pods
working-directory: TVOSExample/ios
working-directory: ${{ env.WORKING_DIRECTORY }}/ios
run: pod install
- name: Build app
working-directory: TVOSExample
run: xcodebuild -workspace ios/TVOSExample.xcworkspace -destination 'platform=tvOS Simulator,name=Apple TV' -scheme TVOSExample-tvOS -parallelizeTargets -configuration Release -derivedDataPath ios/build -UseModernBuildSystem=YES -quiet | xcpretty
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn tv-os