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

GitHub actions vincent #6

Merged
merged 2 commits into from
Nov 14, 2024
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
73 changes: 73 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,76 @@ jobs:
else
echo "New coverage: $coverage%. Coverage is improved for configuration 3!"
fi

###################################################################################
- name: Build and Test with Maven - Configuration 4
timeout-minutes: 15
run: |
echo "Configuration 4 - Test build with compressed object pointers disabled."
export MAVEN_OPTS="-XX:-UseCompressedOops"
./mvnw -B verify
unset MAVEN_OPTS

- name: Get JaCoCo Coverage - Configuration 4
id: coverage_config4
run: |
coverage=$(python3 config/coverage.py target/site/jacoco/jacoco.csv)
echo "COVERAGE=$coverage" >> $GITHUB_ENV

- name: Fail if coverage has not improved for configuration 4.
run: |
coverage=$COVERAGE
threshold=24.46
if (( $(echo "$coverage - $threshold <= 0.1" | bc -l) )); then
echo "Coverage is not improved for configuration 4."
exit 1
else
echo "New coverage: $coverage%. Coverage is improved for configuration 4!"
fi

###################################################################################
- name: Build and Test with Maven - Configuration 5
timeout-minutes: 15
run: |
echo "Configuration 5 - Test build with tiered compilation disabled."
export MAVEN_OPTS="-XX:-TieredCompilation"
./mvnw -B verify
unset MAVEN_OPTS

- name: Get JaCoCo Coverage - Configuration 5
id: coverage_config5
run: |
coverage=$(python3 config/coverage.py target/site/jacoco/jacoco.csv)
echo "COVERAGE=$coverage" >> $GITHUB_ENV

- name: Fail if coverage has not improved for configuration 5.
run: |
coverage=$COVERAGE
threshold=24.46
if (( $(echo "$coverage - $threshold <= 0.1" | bc -l) )); then
echo "Coverage is not improved for configuration 5."
exit 1
else
echo "New coverage: $coverage%. Coverage is improved for configuration 5!"
echo "
|>>>
|
_ _|_ _
|;|_|;|_|;|
\\\\. . /
\\\\: . /
||: |
||:. |
||: .|
||: | \\,/
||: , | /\`\\
||: |
||: . |
__ ||: , | __
__ |;;| ||: | |;;| __
|;;| |;;| ||:. | |;;| |;;|

FORTRESS SECURED!
ALL TESTS PASSED!
"
fi
Loading