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:
parent
9c56dc7d31
commit
568700668e
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -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
|
||||
exit 1
|
||||
fi
|
||||
echo "Tests failed. Please check the JUnit test results artifact for details."
|
||||
exit 1
|
||||
|
||||
docker-compose-tests:
|
||||
# if: github.event_name == 'push' && github.ref == 'refs/heads/main' ||
|
||||
|
Loading…
Reference in New Issue
Block a user