Add integration tests #189
Workflow file for this run
This file contains hidden or 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 formatting, licence, and run tests. | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '.gitignore' | |
- 'CODEOWNERS' | |
- 'LICENSE' | |
- '*.md' | |
- '*.txt' | |
- '.all-contributorsrc' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
verify-license-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v5 | |
- name: Set up Java and Maven | |
uses: actions/setup-java@v5 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
cache: "maven" | |
- name: Run license and format check | |
run: | | |
if ./mvnw initialize license:check formatter:validate; then | |
echo "Checks passed!" | |
else | |
echo "::error ::License or formatting check failed." | |
echo "::error ::Please run 'mvn compile' to fix the issues before committing." | |
exit 1 | |
fi | |
junit-test: | |
needs: verify-license-and-format | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [17, 21, 24] | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Setup JDK ${{ matrix.java }} | |
uses: actions/setup-java@v5 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.java }} | |
cache: maven | |
- name: Run tests | |
run: ./mvnw verify -B -ntp |