-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 907 Bytes
/
test.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
name: Test and Reports
on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize ]
jobs:
build:
runs-on: ubuntu-latest
environment:
name: dev
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
clean: true
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Build with Gradle
run: ./gradlew clean build --no-build-cache
- name: JVM unit Tests with Coverage Report
run: ./gradlew check
- name: Upload Lib Unit Tests Report to CodeCov
# https://github.com/codecov/codecov-action
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: libunittests
files: ./packetdumper/build/reports/jacoco/test/jacocoTestReport.xml