Compare commits

...

2 commits

Author SHA1 Message Date
Matyáš Caras
6853f024f4
Added translation using Weblate (Slovak) 2024-07-17 20:51:45 +02:00
ed758b0092
ci: try emulator as action
Some checks failed
/ build (push) Failing after 10s
2024-07-17 20:51:24 +02:00
3 changed files with 5 additions and 15 deletions

View file

@ -17,18 +17,6 @@ jobs:
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
export SONAR_SCANNER_OPTS="-server"
- name: Initialize AVD
run: |
sdkmanager "platform-tools" "platforms;android-${{ vars.ANDROID_API }}"
sdkmanager --install "system-images;android-${{ vars.ANDROID_API }};${{ vars.ANDROID_TARGET }};${{ vars.ANDROID_ARCH }}"
sdkmanager --update
echo "y" | sdkmanager --licenses
sdkmanager --list
echo "no" | avdmanager -v create avd --force --name "android_emulator" --package "system-images;android-${{ vars.ANDROID_API }};${{vars.ANDROID_TARGET}};${{ vars.ANDROID_ARCH }}" --tag "${{vars.ANRDOID_TARGET}}" --sdcard 128M --device "${{ vars.ANDROID_DEVICE }}"
emulator -avd "android_emulator" -no-audio -no-window -no-snapstorage -no-snapshot -gpu swiftshader_indirect -no-boot-anim -no-accel -wipe-data -skip-adb-auth &
adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82'
flutter doctor -v
- name: Checkout repository
uses: actions/checkout@v4
@ -37,8 +25,10 @@ jobs:
flutter pub get
- name: Run tests
run: |
flutter test integration_test/app_test.dart --coverage --reporter json > tests.output
uses: https://github.com/ReactiveCircus/android-emulator-runner@v2
with:
api-level: ${{ vars.ANDROID_API }}
script: flutter test integration_test/app_test.dart --coverage --reporter json > tests.output
- name: Run scanner
run: |

1
lib/l10n/app_sk.arb Normal file
View file

@ -0,0 +1 @@
{}

View file

@ -2,6 +2,5 @@ sonar.projectKey=prasule
sonar.sources=lib,pubspec.yaml
sonar.tests=test
sonar.dart.analyzer.mode=MANUAL
sonar.dart.analyzer.report.path=
sonar.dart.analyzer.options.override=true
sonar.host.url=https://sq.mnau.xyz