Skip to content

maven: update compiler source and target to 21 #612

maven: update compiler source and target to 21

maven: update compiler source and target to 21 #612

Workflow file for this run

name: Java exercise
on:
- push
- pull_request
jobs:
java-exercise:
runs-on: ubuntu-22.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