-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #882 from uhafner/quality-monitor
Use new quality monitor action in workflows
- Loading branch information
Showing
5 changed files
with
156 additions
and
280 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
name: 'Generate Codecov coverage report' | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
coverage: | ||
|
||
runs-on: ubuntu-latest | ||
name: Create coverage report and upload results to Codecov on Ubuntu | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 21 | ||
check-latest: true | ||
cache: 'maven' | ||
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.9.5 | ||
- name: Build with Maven | ||
run: mvn -V --color always -ntp clean verify | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: 'target/site/jacoco/jacoco.xml' | ||
token: ${{secrets.CODECOV_TOKEN}} |
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,36 @@ | ||
name: 'Quality Monitor PR' | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: [ubuntu-latest] | ||
name: Build, test and monitor quality on Ubuntu | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 21 | ||
check-latest: true | ||
cache: 'maven' | ||
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.9.5 | ||
- name: Build with Maven | ||
env: | ||
BROWSER: chrome-container | ||
run: mvn -V --color always -ntp clean verify -Ppit | tee maven.log | ||
- name: Extract pull request number | ||
uses: jwalton/gh-find-current-pr@v1 | ||
id: pr | ||
- name: Run Quality Monitor | ||
uses: uhafner/quality-monitor@v1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
pr-number: ${{ steps.pr.outputs.number }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.