-
-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (46 loc) · 1.18 KB
/
test.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
40
41
42
43
44
45
46
name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install tshark
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: tshark
version: 1.0
- name: Install scat
run: pip3 install git+https://github.com/fgsect/scat
- name: Setup jdk11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Setup gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Test
run: ./gradlew test --rerun
- name: Store reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: reports
path: build/reports/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/reports/kover/report.xml