smalltalk-matrix/.github/workflows/test.yml

34 lines
759 B
YAML
Raw Normal View History

2022-02-27 23:15:00 +01:00
name: Test
on:
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'
- uses: gradle/gradle-build-action@v2
2022-02-27 23:15:00 +01:00
- name: Run all unit tests
run: ./gradlew allCodeCoverageReport
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
files: ./build/reports/jacoco/allCodeCoverageReport/allCodeCoverageReport.xml