chore: update android minSdkVersion to 24 #217
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: Test | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
android-compile: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
cache-dependency-path: '**/yarn.lock' | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.npm | |
~/node_modules | |
~/ci/node_modules | |
~/.config/yarn/global | |
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install Yarn | |
run: | | |
npm install -g yarn | |
- name: Yarn | |
run: | | |
yarn install | |
cd ci | |
yarn | |
- name: Compile Android (Debug) | |
working-directory: ./ci/android/ | |
run: ./gradlew assembleDebug | |
ios-compile: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
cache-dependency-path: '**/yarn.lock' | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.npm | |
~/node_modules | |
~/ci/node_modules | |
~/.config/yarn/global | |
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Cache cocoapods | |
uses: actions/cache@v2 | |
with: | |
path: ./ci/ios/Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
- name: Install Yarn | |
run: | | |
npm install -g yarn | |
yarn | |
- name: Yarn | |
run: | | |
yarn install | |
cd ci/ | |
yarn | |
cd ios/ | |
pod install | |
- name: Compile iOS | |
working-directory: ./ci/ios/ | |
run: | | |
set -o pipefail && \ | |
xcodebuild -workspace ci.xcworkspace/ \ | |
-scheme ci \ | |
-destination generic/platform=iOS \ | |
-configuration Debug \ | |
CODE_SIGN_IDENTITY="" \ | |
CODE_SIGNING_REQUIRED=NO \ | |
CODE_SIGN_ENTITLEMENTS="" \ | |
CODE_SIGNING_ALLOWED="NO" \ | |
clean build | xcpretty |