Skip to content

Commit

Permalink
add commits to workflow to trigger unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ZihengSun committed Jan 14, 2024
1 parent 2d4169d commit 535d138
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/commit_workflow.yml
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.

0 comments on commit 535d138

Please sign in to comment.