-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (53 loc) · 1.44 KB
/
ci.yaml
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
name: CI
on:
pull_request:
jobs:
checkstyle_job:
runs-on: ubuntu-latest
name: Checkstyle
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run check style
uses: nikitasavinov/checkstyle-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: "github-pr-check"
tool_name: "testtool"
checkstyle_config: "checkstyle.xml"
level: error
fail_on_error: true
build:
strategy:
matrix:
java: [8, 11, 15, 17, 20]
name: Build ${{ matrix.java }}
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: ${{ matrix.java }}
check-latest: true
cache: "maven"
server-id: ossrh
- name: Maven Build
env:
DESCOPE_PROJECT_ID: ${{ secrets.DESCOPE_PROJECT_ID }}
DESCOPE_MANAGEMENT_KEY: ${{ secrets.DESCOPE_MANAGEMENT_KEY }}
run: mvn -B -ntp package
verify:
name: Verify Release
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "11"
check-latest: true
cache: "maven"
- run: mvn -B -ntp -P ci verify -DskipTests -Dgpg.skip