-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.42 KB
/
maven.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
name: Java CI with Maven
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17' ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'microsoft'
cache: maven
- name: maven-settings-action
uses: s4u/[email protected]
with:
sonatypeSnapshots: true
- name: Build with Maven
run: |
mvn -B -U clean install
mvn -B jacoco:report -pl terasoluna-gfw-spring-boot-autoconfigure
mvn -B jacoco:report -pl terasoluna-gfw-spring-boot-test-autoconfigure
- name: Codacy Coverage Reporter
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: terasoluna-gfw-spring-boot-autoconfigure/target/site/jacoco/jacoco.xml
- name: action-maven-publish
uses: samuelmeuli/[email protected]
if: ${{ matrix.java == '17' }}
with:
nexus_username: ${{ secrets.NEXUS_USERNAME }}
nexus_password: ${{ secrets.NEXUS_PASSWORD }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
maven_args: -Dmaven.test.skip=true -Dgpg.skip=false