@@ -91,16 +91,66 @@ jobs:
9191 path : " **/build/reports"
9292
9393
94- test :
95- name : " Test"
96- timeout-minutes : 120
94+ test_registry_unit :
95+ name : " Test Registry Unit"
9796 needs : build
98- if : |
99- (github.event.pull_request.draft == false)
100- && (needs.check.outputs.testing_needed == 'true')
97+ runs-on : ubuntu-latest
98+ steps :
99+ - name : " Checkout Branch"
100+ uses : actions/checkout@v4
101+
102+ - name : " Setup Java"
103+ uses : actions/setup-java@v4
104+ with :
105+ distribution : ' temurin'
106+ java-version : 21
107+ cache : ' gradle'
101108
109+ - name : Setup Gradle cache
110+ uses : actions/cache@v4
111+ with :
112+ path : ~/.gradle
113+ key : ${{ runner.os }}-gradle-${{ hashFiles('versions.properties') }}-${{ github.sha }}
114+
115+ - name : " Prepare libs for tests"
116+ run : ./prepare.sh
117+
118+ - name : " Run Tests"
119+ run : ./gradlew --build-cache --continue --rerun-tasks :bco.registry.unit.test:check
120+
121+
122+ test_registry_message :
123+ name : " Test Registry Message"
124+ needs : build
102125 runs-on : ubuntu-latest
126+ steps :
127+ - name : " Checkout Branch"
128+ uses : actions/checkout@v4
129+
130+ - name : " Setup Java"
131+ uses : actions/setup-java@v4
132+ with :
133+ distribution : ' temurin'
134+ java-version : 21
135+ cache : ' gradle'
103136
137+ - name : Setup Gradle cache
138+ uses : actions/cache@v4
139+ with :
140+ path : ~/.gradle
141+ key : ${{ runner.os }}-gradle-${{ hashFiles('versions.properties') }}-${{ github.sha }}
142+
143+ - name : " Prepare libs for tests"
144+ run : ./prepare.sh
145+
146+ - name : " Run Tests"
147+ run : ./gradlew --build-cache --continue --rerun-tasks :bco.registry.message.test:check
148+
149+
150+ test_registry_class :
151+ name : " Test Registry Class"
152+ needs : build
153+ runs-on : ubuntu-latest
104154 steps :
105155 - name : " Checkout Branch"
106156 uses : actions/checkout@v4
@@ -118,16 +168,120 @@ jobs:
118168 path : ~/.gradle
119169 key : ${{ runner.os }}-gradle-${{ hashFiles('versions.properties') }}-${{ github.sha }}
120170
121- - name : " prepare libs for tests"
171+ - name : " Prepare libs for tests"
122172 run : ./prepare.sh
123173
124- - name : " test backend "
125- run : ./gradlew --build-cache check
174+ - name : " Run Tests "
175+ run : ./gradlew --build-cache --continue --rerun-tasks :bco.registry.class.test: check
126176
127- - name : Upload test reports
128- uses : actions/upload-artifact@v4
129- if : ${{ failure() || contains(github.event.pull_request.labels.*.name, 'force reports') }}
177+
178+ test_authentication :
179+ name : " Test Authentication"
180+ needs : build
181+ runs-on : ubuntu-latest
182+ steps :
183+ - name : " Checkout Branch"
184+ uses : actions/checkout@v4
185+
186+ - name : " Setup Java"
187+ uses : actions/setup-java@v4
130188 with :
131- name : Test Reports
132- path : " **/build/reports"
189+ distribution : ' temurin'
190+ java-version : 21
191+ cache : ' gradle'
192+
193+ - name : Setup Gradle cache
194+ uses : actions/cache@v4
195+ with :
196+ path : ~/.gradle
197+ key : ${{ runner.os }}-gradle-${{ hashFiles('versions.properties') }}-${{ github.sha }}
198+
199+ - name : " Prepare libs for tests"
200+ run : ./prepare.sh
201+
202+ - name : " Run Tests"
203+ run : ./gradlew --build-cache --continue --rerun-tasks :bco.authentication.test:check
204+
205+
206+ test_dal :
207+ name : " Test DAL"
208+ needs : build
209+ runs-on : ubuntu-latest
210+ steps :
211+ - name : " Checkout Branch"
212+ uses : actions/checkout@v4
213+
214+ - name : " Setup Java"
215+ uses : actions/setup-java@v4
216+ with :
217+ distribution : ' temurin'
218+ java-version : 21
219+ cache : ' gradle'
220+
221+ - name : Setup Gradle cache
222+ uses : actions/cache@v4
223+ with :
224+ path : ~/.gradle
225+ key : ${{ runner.os }}-gradle-${{ hashFiles('versions.properties') }}-${{ github.sha }}
226+
227+ - name : " Prepare libs for tests"
228+ run : ./prepare.sh
229+
230+ - name : " Run Tests"
231+ run : ./gradlew --build-cache --continue --rerun-tasks :bco.dal.test:check
232+
233+
234+ test_app :
235+ name : " Test App"
236+ needs : build
237+ runs-on : ubuntu-latest
238+ steps :
239+ - name : " Checkout Branch"
240+ uses : actions/checkout@v4
241+
242+ - name : " Setup Java"
243+ uses : actions/setup-java@v4
244+ with :
245+ distribution : ' temurin'
246+ java-version : 21
247+ cache : ' gradle'
248+
249+ - name : Setup Gradle cache
250+ uses : actions/cache@v4
251+ with :
252+ path : ~/.gradle
253+ key : ${{ runner.os }}-gradle-${{ hashFiles('versions.properties') }}-${{ github.sha }}
254+
255+ - name : " Prepare libs for tests"
256+ run : ./prepare.sh
257+
258+ - name : " Run Tests"
259+ run : ./gradlew --build-cache --continue --rerun-tasks :bco.app.test:check
260+
261+
262+ test_app_preset :
263+ name : " Test App Preset"
264+ needs : build
265+ runs-on : ubuntu-latest
266+ steps :
267+ - name : " Checkout Branch"
268+ uses : actions/checkout@v4
269+
270+ - name : " Setup Java"
271+ uses : actions/setup-java@v4
272+ with :
273+ distribution : ' temurin'
274+ java-version : 21
275+ cache : ' gradle'
276+
277+ - name : Setup Gradle cache
278+ uses : actions/cache@v4
279+ with :
280+ path : ~/.gradle
281+ key : ${{ runner.os }}-gradle-${{ hashFiles('versions.properties') }}-${{ github.sha }}
282+
283+ - name : " Prepare libs for tests"
284+ run : ./prepare.sh
133285
286+ - name : " Run Tests"
287+ run : ./gradlew --build-cache --continue --rerun-tasks :bco.app.preset:check
0 commit comments