fix: ensure abort interrupts running queries #2944
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Hibernate ORM integration tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '*' | |
paths-ignore: | |
- '**/release_draft.yml' | |
- '**/maven*.yml' | |
jobs: | |
hibernate-integration-tests: | |
name: 'Run Hibernate ORM integration tests' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Clone repository' | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 50 | |
- name: 'Get changed files' | |
id: changed-files-specific | |
uses: tj-actions/changed-files@v41 | |
with: | |
files_yaml: | | |
doc: | |
- '**/*.md' | |
- '**/docs/**' | |
- '**/*.jpg' | |
- '**/*.png' | |
- name: 'Check changed files' | |
id: changed-files | |
if: ${{steps.changed-files-specific.outputs.doc_only_changed == 'false' && steps.changed-files-specific.outputs.doc_only_modified == 'false'}} | |
run: echo "ONLY_DOCS=false" >> $GITHUB_OUTPUT | |
- name: 'Set up JDK 8' | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: 8 | |
- name: 'Run Hibernate ORM integration tests' | |
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}} | |
run: | | |
./gradlew --no-parallel --no-daemon test-hibernate-only | |
- name: Mask data | |
run: | | |
./gradlew --no-parallel --no-daemon maskJunitHtmlReport | |
- name: 'Archive junit results' | |
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false' && !cancelled()}} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: junit-report | |
path: ./wrapper/build/test-results | |
retention-days: 5 | |
- name: 'Archive html summary report' | |
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false' && !cancelled()}} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: html-summary-report | |
path: ./wrapper/build/report | |
retention-days: 5 |