1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-23 15:21:25 +01:00

Update build.yml

This commit is contained in:
Anthony Stirling 2024-10-19 16:22:12 +01:00 committed by GitHub
parent 9c56dc7d31
commit 568700668e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,12 +36,22 @@ jobs:
gradle-version: 8.7
- name: Build with Gradle
run: ./gradlew build --no-build-cache
continue-on-error: true
- name: Upload JUnit test results
if: always()
uses: actions/upload-artifact@v3
with:
name: junit-test-results
path: '**/build/test-results/test/TEST-*.xml'
retention-days: 7
- name: Check for test failures
if: failure()
run: |
if ! ./gradlew build --no-build-cache; then
echo "Gradle build failed. Printing test report:"
cat build/reports/tests/test/index.html
echo "Tests failed. Please check the JUnit test results artifact for details."
exit 1
fi
docker-compose-tests:
# if: github.event_name == 'push' && github.ref == 'refs/heads/main' ||