Skip to content

Running unit tests

Running unit tests #5

Workflow file for this run

name: Unit tests
run-name: Running unit tests
on:
push:
branches:
- "dev"
pull_request:
branches:
- "dev"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
module:
- modo-compose
steps:
- uses: actions/checkout@v4
- name: "Set up JDK 17"
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: gradle
- uses: gradle/wrapper-validation-action@v2
- uses: gradle/actions/setup-gradle@v3
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
- name: Build and Test
run: ./gradlew :${{ matrix.module }}:testDebugUnitTest --continue
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: '**/build/test-results/**/TEST-*.xml'