-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (36 loc) · 1.04 KB
/
default.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: Development branches
on:
pull_request:
push:
branches:
- '*'
- '**/*'
- '!master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
cache: maven
- name: Prepare mvnw
run: chmod +x ./mvnw
- name: Build
run: ./mvnw clean package -ntp
- name: Run integration tests and generate coverage reports
run: ./mvnw -Pitest verify failsafe:verify -ntp
- name: Upload coverage to Codecov
if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
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}}"