2022-02-27 23:15:00 +01:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
2022-02-27 23:55:42 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
pull_request:
|
2022-02-27 23:15:00 +01: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 22:24:09 +01:00
|
|
|
- uses: actions/checkout@v3
|
2022-11-28 20:09:53 +01:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2022-12-11 22:24:15 +01:00
|
|
|
- uses: actions/setup-java@v3
|
2022-02-27 23:15:00 +01:00
|
|
|
with:
|
|
|
|
distribution: 'adopt'
|
|
|
|
java-version: '11'
|
2022-03-26 10:56:59 +01:00
|
|
|
- uses: gradle/gradle-build-action@v2
|
2022-02-27 23:15:00 +01:00
|
|
|
|
|
|
|
- name: Run all unit tests
|
2022-12-10 15:57:15 +01:00
|
|
|
run: ./gradlew allCodeCoverageReport
|
2022-02-27 23:55:42 +01:00
|
|
|
|
2022-12-07 23:33:09 +01:00
|
|
|
- uses: codecov/codecov-action@v3
|
2022-02-27 23:15:00 +01:00
|
|
|
with:
|
2022-12-07 23:32:09 +01:00
|
|
|
verbose: true
|
2022-12-10 15:57:15 +01:00
|
|
|
files: ./build/reports/jacoco/allCodeCoverageReport/allCodeCoverageReport.xml
|