-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and Test YOJ using GitHub Actions on any PR and merge to
main
- Loading branch information
1 parent
ebd2222
commit 8b27f0d
Showing
1 changed file
with
33 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,33 @@ | ||
name: Build YOJ (unit tests only) | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
types: [opened, synchronize, reopened, edited, ready_for_review] | ||
|
||
jobs: | ||
build: | ||
name: Build YOJ (unit tests only) | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: Build with Maven | ||
run: mvn $MAVEN_ARGS verify | ||
|
||
- name: Publish Test Report | ||
if: ${{ always() }} | ||
uses: scacap/action-surefire-report@v1 |