-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e49f8c
commit 4fd4238
Showing
2 changed files
with
54 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,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" |
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,44 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- "README.md" | ||
- "release-notes/*" | ||
pull_request: | ||
branches: | ||
- master | ||
permissions: | ||
contents: read | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Alas, JDK14 can't be yet used while build is for Java 6 | ||
java_version: ['8', '11'] | ||
os: ['ubuntu-20.04'] | ||
env: | ||
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1" | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: "temurin" | ||
java-version: ${{ matrix.java_version }} | ||
cache: 'maven' | ||
- name: Build | ||
run: ./mvnw -B -q -ff -ntp verify | ||
- name: Generate code coverage | ||
if: github.event_name != 'pull_request' && matrix.java_version == '8' | ||
run: ./mvnw -B -q -ff -ntp test | ||
- name: Publish code coverage | ||
if: github.event_name != 'pull_request' && matrix.java_version == '8' | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./target/site/jacoco/jacoco.xml | ||
flags: unittests |