issues/100 Composition #198
Workflow file for this run
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
name: verify-pr | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
spotless-check: | |
name: 'spotless:check' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: '17' | |
- id: spotless-check | |
run: './mvnw -B -ntp spotless:check' | |
- name: Comment on PR | |
uses: peter-evans/commit-comment@v1 | |
if: failure() | |
with: | |
body: | | |
`./mvnw spotless:check` failed. Please run `./mvnw spotless:apply` and update your PR. | |
mvn-verify: | |
name: 'Run tests' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: '17' | |
- run: './mvnw -B -ntp verify' |