forked from cfpb/hmda-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 934 Bytes
/
unit-test.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
name: HMDA Unit Tests
on:
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
- name: Run Sbt Tests
run: |
touch log-file
sbt "project hmda-platform" test |& tee -a log-file
sbt "project check-digit" test |& tee -a log-file
sbt "project common" test |& tee -a log-file
sbt "project data-browser" test |& tee -a log-file
continue-on-error: true
- name: Check Test Results
run: |
if [ $(cat log-file | grep -E "TEST FAILED|TESTS FAILED|Failed tests" | wc -l) -gt 0 ]; then
echo "Unit tests failed."
exit 1
else
echo "Unit tests passed."
fi