Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export TCK logs in GitHub Action #86

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
fetch-depth: 1
- name: Check Format
run: |
mvn -Pverify-format clean compile
mvn -B --no-transfer-progress -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Pverify-format clean compile
shell: 'bash'

build-jdo:
Expand All @@ -49,6 +49,8 @@ jobs:
matrix:
# run different builds with the listed java versions
java: [ 8, 11, 17, 21 ]
# continue to run other matrix builds if one of them fails
fail-fast: false
defaults:
run:
shell: bash
Expand All @@ -69,4 +71,13 @@ jobs:
# Builds JDO & Runs the TCK
- name: Build JDO & Run TCK
run: |
mvn clean install
mvn -B --no-transfer-progress -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean install

# Exports the TCK logs in case the build fails
- name: Export TCK logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: tck-logs-jdk-${{ matrix.java }}
retention-days: 14
path: tck/target/logs/**/*