Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ci-gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ kotlin.compiler.execution.strategy=in-process

# Controls KotlinOptions.allWarningsAsErrors. This is used in CI and can be set in local properties.
warningsAsErrors=true
file.encoding=utf-8
8 changes: 5 additions & 3 deletions .github/workflows/android_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
jobs:
unitTest:
name: Unit tests
runs-on: ubuntu-latest
runs-on: self-hosted
timeout-minutes: 60

steps:
Expand Down Expand Up @@ -43,19 +43,21 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle

- name: Set up Local properties keys
run: |
echo FIREBASE_API_KEY=\"${{ secrets.FIREBASE_API_KEY }}\" >> ./local.properties
echo FIREBASE_APPLICATION_ID=\"${{ secrets.FIREBASE_APPLICATION_ID }}\" >> ./local.properties
echo FIREBASE_CLIENT_ID=\"${{ secrets.FIREBASE_CLIENT_ID }}\" >> ./local.properties
echo FIREBASE_DATABASE_URL=\"${{ secrets.FIREBASE_DATABASE_URL }}\" >> ./local.properties
echo FIREBASE_PROJECT_ID=\"${{ secrets.FIREBASE_PROJECT_ID }}\" >> ./local.properties

echo sdk.dir=~\/actions-runner\/_work\/android-sdk >> ./local.properties

- name: Run local tests
run: ./gradlew testDebug --stacktrace

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: "**/build/test-results/**/*.xml"
files: "**/build/test-results/**/*.xml"