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

CI jobs name independent of Java version #1674

Merged
merged 4 commits into from
May 25, 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
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
tests: [ 'check', 'integrationTest', 'jmh -Pjmh.iterations=1 -Pjmh.timeOnIteration=5s -Pjmh.warmupIterations=0' ]
tasks: [
{alias: "unitTests", name: "check"},
{alias: "integrationTests", name: "integrationTest"},
{alias: "benchmark", name: "jmh -Pjmh.iterations=1 -Pjmh.timeOnIteration=5s -Pjmh.warmupIterations=0"}
]
fail-fast: false
name: Java 11 ${{ matrix.tests }}

name: ${{ matrix.tasks.alias }}
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -36,12 +39,12 @@ jobs:
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assemble
- name: Run tests with Gradle
run: ./gradlew ${{ matrix.tests }}
- name: Archive test results
- name: Run task with Gradle
run: ./gradlew ${{ matrix.tasks.name }}
- name: Archive task results
uses: actions/upload-artifact@v3
if: (success() || failure()) && !contains(matrix.tests, 'jmh')
if: (success() || failure()) && matrix.tasks.alias != 'benchmark'
with:
name: ${{ matrix.tests }}-test-report
name: ${{ matrix.tasks.name }}-test-report
path: '**/build/test-results/**/TEST-*.xml'
retention-days: 90