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

34 lines
759 B
YAML

name: Test
on:
push:
branches:
- 'main'
pull_request:
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:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- uses: gradle/gradle-build-action@v2
- name: Run all unit tests
run: ./gradlew allCodeCoverageReport
- uses: codecov/codecov-action@v3
with:
verbose: true
files: ./build/reports/jacoco/allCodeCoverageReport/allCodeCoverageReport.xml