2022-02-27 22:15:00 +00:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
2022-02-27 22:55:42 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
pull_request:
|
2022-02-27 22:15:00 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
unit-tests:
|
|
|
|
name: Run all unit tests (with coverage)
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
steps:
|
2022-12-11 21:24:09 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-11-28 19:09:53 +00:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2022-12-11 21:24:15 +00:00
|
|
|
- uses: actions/setup-java@v3
|
2022-02-27 22:15:00 +00:00
|
|
|
with:
|
|
|
|
distribution: 'adopt'
|
|
|
|
java-version: '11'
|
2022-03-26 09:56:59 +00:00
|
|
|
- uses: gradle/gradle-build-action@v2
|
2022-02-27 22:15:00 +00:00
|
|
|
|
|
|
|
- name: Run all unit tests
|
2022-12-10 14:57:15 +00:00
|
|
|
run: ./gradlew allCodeCoverageReport
|
2022-02-27 22:55:42 +00:00
|
|
|
|
2022-12-07 22:33:09 +00:00
|
|
|
- uses: codecov/codecov-action@v3
|
2022-02-27 22:15:00 +00:00
|
|
|
with:
|
2022-12-07 22:32:09 +00:00
|
|
|
verbose: true
|
2022-12-10 14:57:15 +00:00
|
|
|
files: ./build/reports/jacoco/allCodeCoverageReport/allCodeCoverageReport.xml
|