generated from KvalitetsIT/kithugs
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 923 Bytes
/
pr_ci.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
name: Pull Request CI
on:
pull_request: ~
jobs:
pr_build:
runs-on: ubuntu-latest
steps:
# Checkout source code
- uses: actions/checkout@v3
# Cache maven stuff
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build and test
run: ./build/build.sh
- name: Upload Jacoco coverage report
uses: actions/upload-artifact@v3
with:
name: jacoco-report
path: testreport/target/site/jacoco-aggregate/
- name: Save PR number
run: |
mkdir -p ./pr
echo ${{ github.event.number }} > ./pr/NR
- uses: actions/upload-artifact@v3
with:
name: pr
path: |
pr/
testreport/target/site/jacoco-aggregate/jacoco.csv