-
-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (34 loc) · 965 Bytes
/
coverage.yaml
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
name: Collect coverage
on:
push:
branches:
- master
jobs:
coverage:
runs-on: macos-latest
steps:
- name: Checkout code from "master"
uses: actions/checkout@v1
- name: Setup Java environment
uses: actions/setup-java@v1
with:
java-version: 14
- name: Install Python for Test Dependencies
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Poetry for Test Dependencies
run: |
python -m pip install pip==21.1.1
pip install poetry==1.1.6
- name: Run tests
uses: eskatos/gradle-command-action@v1
with:
arguments: test jacocoTestReport --warning-mode=summary
gradle-version: "7.3"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./build/reports/jacoco/test/jacocoTestReport.xml
fail_ci_if_error: true