-
Notifications
You must be signed in to change notification settings - Fork 11
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
3099614
commit f6f337c
Showing
1 changed file
with
35 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,35 @@ | ||
name: 'Quality Monitor' | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
monitor-project-quality: | ||
name: Run the quality monitor | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v3 | ||
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 # (compile, test with code and mutation coverage, and run static analysis) | ||
run: mvn -ntp clean verify -Ppit | ||
- name: Extract pull request number # (commenting on the pull request requires the PR 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 }} |