next (v5) (DO NOT MERGE) #4868
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 Pull Request | |
env: | |
MAVEN_ARGS: -V -ntp -e | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- 'adr/**' | |
branches: [ main, v1, v2, v3, next ] | |
workflow_dispatch: | |
jobs: | |
check_format_and_unit_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java and Maven | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: 'maven' | |
- name: Check code format | |
run: | | |
./mvnw ${MAVEN_ARGS} spotless:check --file pom.xml | |
- name: Run unit tests | |
run: ./mvnw ${MAVEN_ARGS} clean install -Pno-apt --file pom.xml | |
build: | |
uses: ./.github/workflows/build.yml |