@@ -14,22 +14,82 @@ jobs:
14
14
uses : actions/checkout@v4
15
15
16
16
- name : Setup JDK
17
- uses : actions/setup-java@v3
17
+ uses : actions/setup-java@v4
18
18
with :
19
- java-version : ' 17 '
19
+ java-version : ' 11 '
20
20
distribution : ' adopt'
21
21
22
- - name : Run Sbt Tests
22
+ - name : Run hmda-platform Tests
23
23
run : |
24
- touch log-file
25
- sbt test > log-file
24
+ sbt "project hmda-platform" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
25
+ continue-on-error : true
26
+
27
+ - name : Run check-digit Tests
28
+ run : |
29
+ sbt "project check-digit" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
30
+ continue-on-error : true
31
+
32
+ - name : Run common Tests
33
+ run : |
34
+ sbt "project common" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
35
+ continue-on-error : true
36
+
37
+ - name : Run data-browser Tests
38
+ run : |
39
+ sbt "project data-browser" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
40
+ continue-on-error : true
41
+
42
+ - name : Run hmda-analytics Tests
43
+ run : |
44
+ sbt "project hmda-analytics" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
45
+ continue-on-error : true
46
+
47
+ - name : Run hmda-data-publisher Tests
48
+ run : |
49
+ sbt "project hmda-data-publisher" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
50
+ continue-on-error : true
51
+
52
+ - name : Run hmda-quarterly-data-service Tests
53
+ run : |
54
+ sbt "project hmda-quarterly-data-service" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
55
+ continue-on-error : true
56
+
57
+ - name : Run hmda-reporting Tests
58
+ run : |
59
+ sbt "project hmda-reporting" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
60
+ continue-on-error : true
61
+
62
+ - name : Run institutions-api Tests
63
+ run : |
64
+ sbt "project institutions-api" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
65
+ continue-on-error : true
66
+
67
+ - name : Run modified-lar Tests
68
+ run : |
69
+ sbt "project modified-lar" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
70
+ continue-on-error : true
71
+
72
+ - name : Run rate-limit Tests
73
+ run : |
74
+ sbt "project rate-limit" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
75
+ continue-on-error : true
76
+
77
+ - name : Run ratespread-calculator Tests
78
+ run : |
79
+ sbt "project ratespread-calculator" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
80
+ continue-on-error : true
81
+
82
+ - name : Run submission-errors Tests
83
+ run : |
84
+ sbt "project submission-errors" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
26
85
continue-on-error : true
27
86
28
87
- name : Check Test Results
29
88
run : |
30
- if [ $(cat log-file | grep -E "TEST FAILED|TESTS FAILED|Failed tests" | wc -l) -gt 0 ]; then
31
- echo "Unit tests failed ."
89
+ if [ $(grep 'All tests passed.' log-file | wc -l) -ne 13 ]; then
90
+ echo "One or more projects had failures. Please review the logs ."
32
91
exit 1
33
92
else
34
- echo "Unit tests passed."
93
+ echo "All tests passed."
94
+ exit 0
35
95
fi
0 commit comments