-
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (35 loc) · 964 Bytes
/
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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
Build:
name: Build & test source code
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 11
- name: Install dependencies
run: bash ./install_deps.sh
- name: Compile Project
run: ./gradlew buildHeaders build
- name: Create code coverage report
run: ./gradlew createCodeCoverageReport
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload Coverage to GH-Actions
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: Tests Coverage Report
path: |
lib/build/coverage-report/