Release 3.10.0 #85
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Lint files | |
run: yarn lint --max-warnings=0 | |
- name: Typecheck files | |
run: | | |
yarn typecheck | |
- name: Typecheck Expo files | |
run: | | |
yarn expo:typecheck | |
- name: Format check | |
run: yarn prettier --check | |
# no tests yet 😥 | |
# test: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Setup | |
# uses: ./.github/actions/setup | |
# - name: Run unit tests | |
# run: yarn test --maxWorkers=2 --coverage | |
build-library: | |
runs-on: ubuntu-latest | |
needs: [lint] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build package | |
run: yarn prepack | |
build-android: | |
runs-on: ubuntu-latest | |
needs: build-library | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Install JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Finalize Android SDK | |
run: | | |
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null" | |
- name: Cache Gradle | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/wrapper | |
~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Build example for Android | |
env: | |
JAVA_OPTS: "-XX:MaxHeapSize=6g" | |
working-directory: ./example | |
run: | | |
yarn build:android | |
# !! Currently build iOS is not working due to issues with XCode version | |
# build-ios: | |
# runs-on: macos-14 | |
# needs: build-library | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Setup Xcode version | |
# uses: maxim-lobanov/[email protected] | |
# with: | |
# xcode-version: '15.4.0' | |
# - name: Setup | |
# uses: ./.github/actions/setup | |
# - name: Install cocoapods | |
# run: | | |
# cd example/ios | |
# pod install | |
# - name: Build example for iOS | |
# working-directory: ./example | |
# run: | | |
# yarn build:ios |