Skip to content

Commit ca98ef8

Browse files
committed
Update android_build.yml
1 parent c3e1e1a commit ca98ef8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/ci-gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ kotlin.compiler.execution.strategy=in-process
88

99
# Controls KotlinOptions.allWarningsAsErrors. This is used in CI and can be set in local properties.
1010
warningsAsErrors=true
11+
file.encoding=utf-8

.github/workflows/android_build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
jobs:
1515
unitTest:
1616
name: Unit tests
17-
runs-on: ubuntu-latest
17+
runs-on: self-hosted
1818
timeout-minutes: 60
1919

2020
steps:
@@ -43,19 +43,21 @@ jobs:
4343
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
4444
restore-keys: |
4545
${{ runner.os }}-gradle
46+
4647
- name: Set up Local properties keys
4748
run: |
4849
echo FIREBASE_API_KEY=\"${{ secrets.FIREBASE_API_KEY }}\" >> ./local.properties
4950
echo FIREBASE_APPLICATION_ID=\"${{ secrets.FIREBASE_APPLICATION_ID }}\" >> ./local.properties
5051
echo FIREBASE_CLIENT_ID=\"${{ secrets.FIREBASE_CLIENT_ID }}\" >> ./local.properties
5152
echo FIREBASE_DATABASE_URL=\"${{ secrets.FIREBASE_DATABASE_URL }}\" >> ./local.properties
5253
echo FIREBASE_PROJECT_ID=\"${{ secrets.FIREBASE_PROJECT_ID }}\" >> ./local.properties
53-
54+
echo sdk.dir=\/home\/stslex\/actions-runner\/_work\/android-sdk >> ./local.properties
55+
5456
- name: Run local tests
5557
run: ./gradlew testDebug --stacktrace
5658

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

0 commit comments

Comments
 (0)