-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (32 loc) · 1009 Bytes
/
pr.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
name: pr-build
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: install libhyperic-sigar
run: sudo apt-get install libhyperic-sigar-java
- name: fetch head
uses: actions/checkout@v3
- name: setup jdk
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
settings-path: ${{ github.workspace }}/.mvn/
- name: cache .m2
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: maven build
run: ./mvnw -B -U verify -s $GITHUB_WORKSPACE/.mvn/settings.xml
env:
GITHUB_TOKEN: ${{secrets.serverpass}}
- uses: actions/[email protected]
with:
name: todos-build-artifacts
path: ${{ github.workspace }}/**/target/**