-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (37 loc) · 996 Bytes
/
java-exercise.yml
File metadata and controls
44 lines (37 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
- uses: actions/upload-artifact@v4.6.2
if: always()
with:
path: 'topics/testing/code/target/'