-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
70 additions
and
1 deletion.
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,27 @@ | ||
name: Build Master | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: Running tests | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: "21" | ||
distribution: "adopt" | ||
|
||
- name: Build classes | ||
run: "./gradlew classes" | ||
|
||
- name: Build tests | ||
run: "./gradlew testClasses" | ||
|
||
- name: Run tests | ||
run: "./gradlew test jacocoTestReport --no-parallel" |
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,40 @@ | ||
name: Test PR | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "master" | ||
|
||
|
||
permissions: | ||
contents: read | ||
checks: write | ||
pull-requests: write | ||
|
||
|
||
jobs: | ||
build-tests: | ||
runs-on: ubuntu-latest | ||
name: Pull Request Java ${{ matrix.java }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: "21" | ||
distribution: "adopt" | ||
|
||
- name: Build classes | ||
run: "./gradlew classes" | ||
|
||
- name: Build tests | ||
run: "./gradlew testClasses" | ||
|
||
- name: Run tests | ||
run: "./gradlew test jacocoTestReport" | ||
|
||
- name: Report tests | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
with: | ||
files: | | ||
**/test-results/**/*.xml |
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
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