-
Notifications
You must be signed in to change notification settings - Fork 26
36 lines (31 loc) · 931 Bytes
/
build.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
name: Build
on:
push:
branches: [main, 2.x]
pull_request:
branches: [main, 2.x]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Install Java and Maven
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Check out Git repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Gradle Build and Test
uses: gradle/gradle-build-action@v2.10.0
with:
arguments: --build-cache build
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./build/jacoco/codeCoverageReport/codeCoverageReport.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
verbose: true
java-version: 17
if: github.ref == 'refs/heads/main'