Skip to content

fix(deps): update dependency com.google.gms:google-services to v4.4.1 #99

fix(deps): update dependency com.google.gms:google-services to v4.4.1

fix(deps): update dependency com.google.gms:google-services to v4.4.1 #99

Workflow file for this run

name: "Checks"
on:
pull_request:
branches:
- main
# Cancel any current or previous job from the same PR
concurrency:
group: checks-${{ github.ref }}
cancel-in-progress: true
jobs:
changed:
runs-on: ubuntu-22.04
outputs:
android: ${{ steps.changes.outputs.android }}
ios: ${{ steps.changes.outputs.ios }}
backend: ${{ steps.changes.outputs.backend }}
steps:
# https://github.com/marketplace/actions/checkout
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# https://github.com/marketplace/actions/paths-changes-filter
- name: Paths Changes Filter
uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
id: changes
with:
filters: |
android:
- 'app/android/**/*'
- 'app/shared/**/*'
- 'build-logic/**/*'
- 'core/**/*'
- 'feature/**/*'
- 'gradle/**/*'
- 'build.gradle.kts'
- 'gradle.properties'
- 'settings.gradle.kts'
ios:
- 'app/ios/**/*'
- 'app/ios-combined/**/*'
- 'app/shared/**/*'
- 'build-logic/**/*'
- 'core/**/*'
- 'feature/**/*'
- 'gradle/**/*'
- 'build.gradle.kts'
- 'gradle.properties'
- 'settings.gradle.kts'
backend:
- 'app/backend/**/*'
- 'build-logic/**/*'
- 'core/**/*'
- 'gradle/**/*'
- 'build.gradle.kts'
- 'gradle.properties'
- 'settings.gradle.kts'
check-android:
runs-on: ubuntu-22.04
needs: changed
if: needs.changed.outputs.android == 'true'
steps:
# https://github.com/marketplace/actions/checkout
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
lfs: 'true'
# https://github.com/marketplace/actions/setup-java-jdk
- name: Setup Java JDK
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
distribution: 'zulu'
java-version: 17
# https://github.com/marketplace/actions/build-with-gradle
- name: Build with Gradle
uses: gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0
- name: Unit Tests
run: ./gradlew testDebugUnitTest
- name: Build
run: ./gradlew :app:android:assembleDevDebug
check-ios:
runs-on: macos-13
needs: changed
if: needs.changed.outputs.ios == 'true'
strategy:
matrix:
destination: [ 'platform=iOS Simulator,OS=17.2,name=iPhone 15' ]
steps:
# https://github.com/marketplace/actions/checkout
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# https://github.com/marketplace/actions/setup-java-jdk
- name: Setup Java JDK
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
distribution: 'zulu'
java-version: 17
# https://github.com/marketplace/actions/build-with-gradle
- name: Build with Gradle
uses: gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0
# https://github.com/marketplace/actions/setup-xcode-version
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
with:
xcode-version: '15.1.0'
- name: Build iOS framework
run: ./gradlew :app:ios-combined:assembleNitoKmpReleaseXCFramework
- name: Run iOS unit tests
continue-on-error: true
run: xcodebuild clean build -project app/ios/App/Nito/Nito.xcodeproj -configuration Debug -scheme Dev -sdk iphoneos -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO -test-timeouts-enabled YES
env:
destination: ${{ matrix.destination }}
check-backend:
runs-on: ubuntu-22.04
needs: changed
if: needs.changed.outputs.backend == 'true'
steps:
# https://github.com/marketplace/actions/checkout
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
lfs: 'true'
# https://github.com/marketplace/actions/setup-java-jdk
- name: Setup Java JDK
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
distribution: 'zulu'
java-version: 17
# https://github.com/marketplace/actions/build-with-gradle
- name: Build with Gradle
uses: gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0
- name: Unit Tests
run: ./gradlew :app:backend:check
- name: Build
run: ./gradlew :app:backend:buildFatJar
status-check:
runs-on: ubuntu-22.04
needs:
- check-android
- check-ios
- check-backend
permissions: { }
if: failure()
steps:
- run: exit 1