@@ -15,25 +15,12 @@ jobs:
15
15
check-codestyle :
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - name : Checkout repository
19
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
20
- with :
21
- fetch-depth : 0
22
-
23
- - name : Set up JDK
24
- uses : actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
25
- with :
26
- distribution : temurin
27
- java-version : 20
28
-
29
- - name : Copy CI gradle.properties
30
- run : mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
18
+ - name : Setup build environment
19
+ uses : android-password-store/android-password-store/.github/reusable-workflows/setup-gradle@develop
31
20
32
21
- name : Check codestyle
33
- uses : gradle/actions/setup-gradle@6cec5d49d4d6d4bb982fbed7047db31ea6d38f11 # v3
34
- with :
35
- arguments : ktfmtCheck
36
- gradle-home-cache-cleanup : true
22
+ shell : bash
23
+ run : ./gradlew ktfmtCheck
37
24
38
25
- name : Upload Kotlin build report
39
26
if : " ${{ always() }}"
@@ -45,25 +32,12 @@ jobs:
45
32
unit-tests :
46
33
runs-on : ubuntu-latest
47
34
steps :
48
- - name : Checkout repository
49
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
50
- with :
51
- fetch-depth : 0
52
-
53
- - name : Set up JDK
54
- uses : actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
55
- with :
56
- distribution : temurin
57
- java-version : 20
58
-
59
- - name : Copy CI gradle.properties
60
- run : mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
35
+ - name : Setup build environment
36
+ uses : android-password-store/android-password-store/.github/reusable-workflows/setup-gradle@develop
61
37
62
38
- name : Run unit tests
63
- uses : gradle/actions/setup-gradle@6cec5d49d4d6d4bb982fbed7047db31ea6d38f11 # v3
64
- with :
65
- arguments : test -PslimTests
66
- gradle-home-cache-cleanup : true
39
+ shell : bash
40
+ run : ./gradlew test -PslimTests
67
41
68
42
- name : (Fail-only) Upload test report
69
43
if : " ${{ failure() }}"
@@ -82,25 +56,12 @@ jobs:
82
56
build-apks :
83
57
runs-on : ubuntu-latest
84
58
steps :
85
- - name : Checkout repository
86
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
87
- with :
88
- fetch-depth : 0
89
-
90
- - name : Set up JDK
91
- uses : actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
92
- with :
93
- distribution : temurin
94
- java-version : 20
95
-
96
- - name : Copy CI gradle.properties
97
- run : mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
59
+ - name : Setup build environment
60
+ uses : android-password-store/android-password-store/.github/reusable-workflows/setup-gradle@develop
98
61
99
62
- name : Build debug APKs
100
- uses : gradle/actions/setup-gradle@6cec5d49d4d6d4bb982fbed7047db31ea6d38f11 # v3
101
- with :
102
- arguments : assembleFreeDebug assembleNonFreeDebug assembleNonFreeRelease
103
- gradle-home-cache-cleanup : true
63
+ shell : bash
64
+ run : ./gradlew assembleFreeDebug assembleNonFreeDebug assembleNonFreeRelease
104
65
105
66
- name : Upload Kotlin build report
106
67
if : " ${{ always() }}"
@@ -112,25 +73,12 @@ jobs:
112
73
check-api :
113
74
runs-on : ubuntu-latest
114
75
steps :
115
- - name : Checkout repository
116
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
117
- with :
118
- fetch-depth : 0
119
-
120
- - name : Set up JDK
121
- uses : actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
122
- with :
123
- distribution : temurin
124
- java-version : 20
125
-
126
- - name : Copy CI gradle.properties
127
- run : mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
76
+ - name : Setup build environment
77
+ uses : android-password-store/android-password-store/.github/reusable-workflows/setup-gradle@develop
128
78
129
79
- name : Check library API
130
- uses : gradle/actions/setup-gradle@6cec5d49d4d6d4bb982fbed7047db31ea6d38f11 # v3
131
- with :
132
- arguments : metalavaCheckCompatibilityRelease
133
- gradle-home-cache-cleanup : true
80
+ shell : bash
81
+ run : ./gradlew metalavaCheckCompatibilityRelease
134
82
135
83
- name : Upload Kotlin build report
136
84
if : " ${{ always() }}"
@@ -142,25 +90,12 @@ jobs:
142
90
lint :
143
91
runs-on : ubuntu-latest
144
92
steps :
145
- - name : Checkout repository
146
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
147
- with :
148
- fetch-depth : 0
149
-
150
- - name : Set up JDK
151
- uses : actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
152
- with :
153
- distribution : temurin
154
- java-version : 20
155
-
156
- - name : Copy CI gradle.properties
157
- run : mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
93
+ - name : Setup build environment
94
+ uses : android-password-store/android-password-store/.github/reusable-workflows/setup-gradle@develop
158
95
159
96
- name : Run Lint
160
- uses : gradle/actions/setup-gradle@6cec5d49d4d6d4bb982fbed7047db31ea6d38f11 # v3
161
- with :
162
- arguments : lint
163
- gradle-home-cache-cleanup : true
97
+ shell : bash
98
+ run : ./gradlew lint
164
99
165
100
- name : Upload Kotlin build report
166
101
if : " ${{ always() }}"
0 commit comments