-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (54 loc) · 1.73 KB
/
ci.yaml
File metadata and controls
62 lines (54 loc) · 1.73 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
name: CI
on:
pull_request:
jobs:
checkstyle_job:
runs-on: ubuntu-latest
name: Checkstyle
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run check style
uses: nikitasavinov/checkstyle-action@188701a3b260206eeb3048e2b6e2af2c47d0876f # 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]
max-parallel: 1
name: Build ${{ matrix.java }}
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: "zulu"
java-version: "11"
check-latest: true
cache: "maven"
- run: mvn -B -ntp -P ci verify -DskipTests -Dgpg.skip