-
Notifications
You must be signed in to change notification settings - Fork 9
74 lines (70 loc) · 2.42 KB
/
code-qualitiy.yml
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
64
65
66
67
68
69
70
71
72
73
74
name: Maven test
on:
workflow_dispatch:
pull_request:
permissions:
contents: read
jobs:
maven-quality:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
oss.sonatype.org:443
repo.maven.apache.org:443
repo.spring.io:443
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up JDK 17
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
with:
java-version: '17'
distribution: 'temurin'
- name: Set up Maven
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
with:
maven-version: 3.9.6
- name: mvn clean verify
run: mvn clean verify
- name: Build with Maven
run: mvn --batch-mode --update-snapshots clean package
- name: Run doc check
run: mvn org.apache.maven.plugins:maven-javadoc-plugin:3.5.0:jar
- name: Run spotless check
run: mvn spotless:check
- name: Check maven pom quality
run: mvn org.kordamp.maven:pomchecker-maven-plugin:1.9.0:check-maven-central -D"checker.release=false"
reproducilbilty:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ github.workspace }}/maven_plugin
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
oss.sonatype.org:443
repo.maven.apache.org:443
repo.spring.io:443
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up JDK 17
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
with:
java-version: '17'
distribution: 'temurin'
- name: Set up Maven
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
with:
maven-version: 3.9.6
- name: Build with Maven
run: mvn --batch-mode --update-snapshots clean install
- name: Run reproducibility check
run: mvn clean install