-
Notifications
You must be signed in to change notification settings - Fork 10
57 lines (46 loc) · 1.27 KB
/
android_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Android unit tests
on:
workflow_call:
inputs:
flutter-version:
description: 'Flutter version'
required: true
default: '3.29.0'
type: string
jobs:
android_tests:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: example/android
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 18
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ inputs.flutter-version }}
channel: 'stable'
cache: true
- run: flutter doctor -v
- run: flutter clean
- run: flutter pub get
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
- name: Init gradle wrapper
run: gradle wrapper
- name: Lint check
run: ./gradlew ktlintCheck lintReportDebug
- name: Unit tests with code coverage reporting
run: ./gradlew jacocoTestReport
- name: Cache android reports
uses: actions/cache/save@v4
id: save-android-reports
with:
path: example/build/adyen_checkout/reports
key: android-reports