Skip to content

Fix Github Actions Pipeline #21

Fix Github Actions Pipeline

Fix Github Actions Pipeline #21

Workflow file for this run

name: HMDA Unit Tests
on:
pull_request:
branches:
- master
jobs:
tests:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
- name: Run Sbt Tests
run: |
brew install sbt
touch log-file
env JAVA_OPTS="-Xss256m -Xmx4096m" sbt > log-file
continue-on-error: true
- name: Check Test Results
run: |
if [ $(cat log-file | grep -E "TEST FAILED|TESTS FAILED|Failed tests|Process completed with exit code 1" | wc -l) -gt 0 ]; then
echo "Unit tests failed or error occurred during setup."
exit 1
else
echo "Unit tests passed."
fi