-
Notifications
You must be signed in to change notification settings - Fork 93
95 lines (77 loc) · 2.93 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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 hmda-platform Tests
run: |
sbt "project hmda-platform" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Run check-digit Tests
run: |
sbt "project check-digit" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Run common Tests
run: |
sbt "project common" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Run data-browser Tests
run: |
sbt "project data-browser" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Run hmda-analytics Tests
run: |
sbt "project hmda-analytics" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Run hmda-data-publisher Tests
run: |
sbt "project hmda-data-publisher" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Run hmda-quarterly-data-service Tests
run: |
sbt "project hmda-quarterly-data-service" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Run hmda-reporting Tests
run: |
sbt "project hmda-reporting" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Run institutions-api Tests
run: |
sbt "project institutions-api" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Run modified-lar Tests
run: |
sbt "project modified-lar" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Run rate-limit Tests
run: |
sbt "project rate-limit" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Run ratespread-calculator Tests
run: |
sbt "project ratespread-calculator" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Run submission-errors Tests
run: |
sbt "project submission-errors" "testOnly -- -l actions-ignore" 2>&1 | tee -a log-file
continue-on-error: true
- name: Check Test Results
run: |
if [ $(grep 'All tests passed.' log-file | wc -l) -ne 13 ]; then
echo "One or more projects had failures. Please review the logs."
exit 1
else
echo "All tests passed."
exit 0
fi