-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.32 KB
/
Copy pathci.yml
File metadata and controls
63 lines (52 loc) · 1.32 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
on:
push:
branches: ["main", "master"]
pull_request:
branches: ["main", "master"]
jobs:
lint:
name: Lint (Checkstyle)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: temurin
cache: maven
- name: Run Checkstyle
run: mvn --batch-mode checkstyle:check -Dgpg.skip=true
type-check:
name: Type Check (compile)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: temurin
cache: maven
- name: Compile
run: mvn --batch-mode compile -Dgpg.skip=true
test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: temurin
cache: maven
- name: Run tests
run: mvn --batch-mode test -Dgpg.skip=true
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: test-reports
path: target/surefire-reports/