-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add commits to workflow to trigger unit tests
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Commit Workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 11 for x64 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
architecture: x64 | ||
|
||
- name: Run Tests | ||
run: | | ||
mvn test jacoco:report | ||
working-directory: ${{ github.workspace }} | ||
|
||
- name: Check If All Tests Pass | ||
run: | | ||
if [ $? -eq 0 ]; then | ||
echo "All tests passed successfully." | ||
else | ||
echo "Tests failed." | ||
exit 1 # Exit with an error code to stop the workflow | ||
fi | ||
- name: Save Geoweaver JaCoCo HTML Report | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: geoweaver-jacoco-coverage-report | ||
path: target/site/jacoco |
File renamed without changes.