Skip to content

build(deps): Bump kotlin-coroutines from 1.7.1 to 1.7.3 #3464

build(deps): Bump kotlin-coroutines from 1.7.1 to 1.7.3

build(deps): Bump kotlin-coroutines from 1.7.1 to 1.7.3 #3464

name: Android Integration
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
JAVA_VERSION: "17"
JAVA_DISTR: 'adopt'
jobs:
static_analysis:
name: "🔍 Static analysis (Detekt)"
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: ${{ env.JAVA_DISTR }}
java-version: ${{ env.JAVA_VERSION }}
- name: Run detekt
uses: gradle/[email protected]
with:
arguments: detekt
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v2
with:
# Path to SARIF file relative to the root of the repository
sarif_file: ${{ github.workspace }}/build/reports/detekt/detekt.sarif
checkout_path: ${{ github.workspace }}
test:
name: "🤖 Unit Tests"
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: ${{ env.JAVA_DISTR }}
java-version: ${{ env.JAVA_VERSION }}
- name: Run unit tests
uses: gradle/[email protected]
with:
arguments: >
testObfPlaystoreDebugUnitTest
testOffPlaystoreDebugUnitTest
testOpfPlaystoreDebugUnitTest
testOpffPlaystoreDebugUnitTest
assemble_apk:
name: "📦 Assemble APKs"
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: ${{ env.JAVA_DISTR }}
java-version: ${{ env.JAVA_VERSION }}
- name: Workaround for Android Gradle Plugin issue
run: 'echo "ndk.dir=${ANDROID_HOME}/ndk-bundle" > local.properties'
- name: Assemble debug APKs
uses: gradle/[email protected]
with:
arguments: assembleDebug
- name: Upload OBF APKs
uses: actions/upload-artifact@v3
with:
name: OBF
path: |
./app/build/outputs/apk/obfPlaystore/debug/app-obf-playstore-debug.apk
./app/build/outputs/apk/obfFdroid/debug/app-obf-fdroid-debug.apk
- name: Upload OFF APK
uses: actions/upload-artifact@v3
with:
name: OFF
path: |
./app/build/outputs/apk/offPlaystore/debug/app-off-playstore-debug.apk
./app/build/outputs/apk/offFdroid/debug/app-off-fdroid-debug.apk
- name: Upload OPF APK
uses: actions/upload-artifact@v3
with:
name: OPF
path: |
./app/build/outputs/apk/opfPlaystore/debug/app-opf-playstore-debug.apk
./app/build/outputs/apk/opfFdroid/debug/app-opf-fdroid-debug.apk
- name: Upload OPFF APK
uses: actions/upload-artifact@v3
with:
name: OPFF
path: |
./app/build/outputs/apk/opffPlaystore/debug/app-opf-playstore-debug.apk
./app/build/outputs/apk/opffFdroid/debug/app-opff-fdroid-debug.apk
lint_off:
name: "🔍 Android Lint"
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: ${{ env.JAVA_DISTR }}
java-version: ${{ env.JAVA_VERSION }}
- name: Workaround for Android Gradle Plugin issue
run: "echo \"ndk.dir=${ANDROID_HOME}/ndk-bundle\" > local.properties"
- name: Increase gradle daemon memory
run: "echo \"org.gradle.jvmargs=-Xmx4096m\" >> gradle.properties"
- name: Lint sources
uses: gradle/[email protected]
with:
arguments: lint --stacktrace
- name: Generate GitHub annotations
uses: yutailang0119/action-android-lint@v3
with:
report-path: ./app/build/reports/lint-results-offPlaystoreDebug.xml
build_deploy_pages:
name: "🚀 Deploy Documentation to GitHub Pages"
runs-on: ubuntu-20.04
# Only on successful push event
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
needs:
- assemble_apk
- test
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: ${{ env.JAVA_DISTR }}
java-version: ${{ env.JAVA_VERSION }}
- name: Generate documentation
uses: gradle/[email protected]
with:
arguments: dokkaHtml
- name: Deploy documentation to Github Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: app/build/dokka/html/