Skip to content

Commit bed35c7

Browse files
author
Andrzej Swatowski
committed
Add build Workflow
1 parent 69db0b5 commit bed35c7

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.github/pull_request_template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#### Description
2+
3+
`describe the purpose of the change here`
4+
5+
Resolves `<issue nr here>`
6+
7+
##### PR Checklist
8+
- [ ] Tests added
9+
- [ ] [Changelog](CHANGELOG.md) updated

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
10+
env:
11+
MAVEN_CLI_OPTS: "--batch-mode"
12+
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
13+
JAVA_ADDITIONAL_OPTS: "-Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS"
14+
FF_USE_FASTZIP: "true"
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Set up JDK 11
23+
uses: actions/setup-java@v3
24+
with:
25+
java-version: '11'
26+
distribution: 'adopt'
27+
cache: maven
28+
29+
- name: Build
30+
run: mvn $MAVEN_CLI_OPTS $JAVA_ADDITIONAL_OPTS compile
31+
32+
- name: Tests
33+
run: |
34+
mvn $MAVEN_CLI_OPTS $JAVA_ADDITIONAL_OPTS test integration-test
35+
cat target/site/jacoco/index.html | grep -o 'Total[^%]*%'
36+
37+
- name: Add coverage to PR
38+
id: jacoco
39+
uses: madrapps/jacoco-report@v1.2
40+
with:
41+
paths: ${{ github.workspace }}/target/site/jacoco/jacoco.xml
42+
token: ${{ secrets.GITHUB_TOKEN }}
43+
min-coverage-overall: 40
44+
min-coverage-changed-files: 60

0 commit comments

Comments
 (0)