-
-
Notifications
You must be signed in to change notification settings - Fork 172
39 lines (37 loc) · 1.08 KB
/
master-build.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
name: 'master_build'
on:
push:
branches: [ master ]
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
jobs:
build_job:
runs-on: ubuntu-latest
name: Build & Test Microservice
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v1
with:
java-version: 21
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- uses: s4u/[email protected]
with:
servers: |
[{
"id": "sonatype-nexus-snapshots",
"username": "${{ secrets.OSS_USERNAME }}",
"password": "${{ secrets.OSS_PASSWORD }}"
}]
- name: Build
run: >
./mvnw deploy
-DsurefireArgs=-Dspring.profiles.active=ASYNCHRONOUS,TEST
-Dci.buildNumber=$GITHUB_RUN_NUMBER
-U -B $MAVEN_OPTS