fix/disable actions

This commit is contained in:
Phillip Thelen 2022-06-28 18:39:12 +02:00
parent 8d2fd994d1
commit ec5a7e9a9c
4 changed files with 43 additions and 26 deletions

View file

@ -44,31 +44,31 @@ jobs:
with:
arguments: testProdDebugUnitTest
ui-test:
runs-on: macos-latest
strategy:
matrix:
api-level: [24, 26, 28, 29, 30, 31]
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Prepare
run: ./.github/prepare-workflow
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedProdDebugAndroidTest
# ui-test:
# runs-on: macos-latest
# strategy:
# matrix:
# api-level: [24, 26, 28, 29, 30, 31]
# steps:
# - uses: actions/checkout@v2
# - name: set up JDK 11
# uses: actions/setup-java@v2
# with:
# java-version: '11'
# distribution: 'adopt'
# cache: gradle
# - name: Prepare
# run: ./.github/prepare-workflow
# - name: Validate Gradle wrapper
# uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
# - name: run tests
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: ${{ matrix.api-level }}
# arch: x86_64
# emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# disable-animations: true
# script: ./gradlew connectedProdDebugAndroidTest
lint:
runs-on: ubuntu-latest

View file

@ -0,0 +1,10 @@
# Habitica Server Port
# local instance
# PORT=3000
PORT=80
BASE_URL=https://habitica.com
STAGING_KEY=
ANDROID_TESTING_UUID=
APPLE_AUTH_CLIENT_ID=
DEBUG_USER_ID=
DEBUG_API_KEY=

View file

@ -0,0 +1,4 @@
fabric_key=
facebook_app_id=
amplitude_app_id=
application_ad_id=

View file

@ -22,5 +22,8 @@ class UserRepository @Inject constructor(val apiClient: ApiClient, val localRepo
suspend fun sleep() = apiClient.sleep()
suspend fun revive() = apiClient.revive()
suspend fun runCron() = apiClient.runCron()
suspend fun runCron() {
apiClient.runCron()
retrieveUser()
}
}