testing improvements #706
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: Java exercise | |
on: | |
- push | |
- pull_request | |
jobs: | |
java-exercise: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
java: | |
- '21' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: compile | |
working-directory: topics/testing/code | |
run: mvn install -DskipTests=true | |
- name: lint | |
working-directory: topics/testing/code | |
run: mvn pmd:check | |
- name: check format | |
working-directory: topics/testing/code | |
run: mvn spotless:check | |
- name: run tests | |
working-directory: topics/testing/code | |
run: mvn test | |
- name: run integration tests | |
working-directory: topics/testing/code | |
run: mvn verify |