Bump actions/setup-java from 3 to 4 #117
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: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
ANDROID_BASE_CHECKS: | |
name: Base Checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: temurin | |
cache: 'gradle' | |
- name: Perform base checks | |
run: ./gradlew app:assembleDebug library:sourcesJar library:dokkaJar --stacktrace | |
ANDROID_UNIT_TESTS: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: temurin | |
cache: 'gradle' | |
- name: Execute unit tests | |
run: ./gradlew library:testDebugUnitTest --stacktrace | |
ANDROID_BUILD_APK: | |
name: Build APK | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: temurin | |
cache: 'gradle' | |
- name: Setup custom keystore file | |
run: | | |
mkdir -p $HOME/.android | |
cp ./.ci/debug.keystore $HOME/.android/debug.keystore | |
- name: Execute APK build | |
run: ./gradlew app:assembleDebug --stacktrace | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: apk-files | |
path: app/build/outputs/apk/**/*.apk | |
- name: Notify | |
# make sure this step runs, regardless of whether the preceding steps were successful or not | |
if: always() | |
env: | |
# "failure", "success" or "cancelled" | |
# see: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#job-context | |
RUN_RESULT: ${{ job.status }} | |
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} | |
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
MATRIX_HOMESERVER: ${{ secrets.MATRIX_HOMESERVER }} | |
MATRIX_ACCESS_TOKEN: ${{ secrets.MATRIX_ACCESS_TOKEN }} | |
run: .ci/notify.sh |