-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (37 loc) · 1.03 KB
/
gradlebuild.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
47
48
on: ["push", "pull_request"]
name: Build, Test, Code Coverage
jobs:
build:
name: Build, Test, Code Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '11.0.4'
java-package: jdk
architecture: x64
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: npm install
run: |
npm install
- name: Build and run test
uses: eskatos/gradle-command-action@v1
with:
arguments: clean build
- name: Generate Code Coverage Report
uses: eskatos/gradle-command-action@v1
with:
arguments: jacocoTestReport
- name: Upload Code Coverage Report
uses: codecov/codecov-action@v1
with:
file: ./build/reports/jacoco/test/jacocoTestReport.xml
- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: ./build/reports/jacoco