-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a github action workflow for running unit tests when creating a…
… pull request into main. Updated the pom to support building the project with submodules on the command line.
- Loading branch information
1 parent
0d9d478
commit e53bd09
Showing
3 changed files
with
39 additions
and
2 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,37 @@ | ||
name: Run Unit Tests | ||
|
||
run-name: ${{ github.actor {} is making a pull request | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Set up JDK 1.17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build | ||
run: mvn --batch-mode -DskipTests package | ||
|
||
- name: Test | ||
run: mvn --batch-mode -Dmaven.test.failure.ignore=true test | ||
|
||
- name: Report | ||
uses: dorny/test-reporter@v1 | ||
if: always() | ||
with: | ||
name: Maven Tests | ||
path: target/surefire-reports/*.xml | ||
reporter: java-junit | ||
fail-on-error: true |
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
Submodule raire-java
updated
77 files