Skip to content

Commit

Permalink
Create grading.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyFault authored Jan 10, 2024
1 parent 3099614 commit f6f337c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/grading.yaml
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 }}

0 comments on commit f6f337c

Please sign in to comment.