-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.22 KB
/
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
43
44
45
46
name: CI for special branches
on:
push:
branches:
- '**'
- '!master'
- '!develop'
- '!snapshot-producer'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
cache: maven
- name: Prepare Maven Wrapper
run: chmod +x ./mvnw
- name: Build with Maven
run: ./mvnw clean verify -U -B -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
- name: Prepare I-Tests
run: mkdir -p target/jgiven-reports/json
- name: Run I-Tests with Maven
run: ./mvnw integration-test failsafe:verify -Pitest -B -T4
- name: Upload coverage information
uses: codecov/codecov-action@v3
with:
token: "${{ secrets.CODECOV_TOKEN }}"
- name: Upload test coverage to Codacy
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
run: bash <(curl -Ls https://coverage.codacy.com/get.sh)
env:
CODACY_PROJECT_TOKEN: "${{secrets.CODACY_PROJECT_TOKEN}}"