Skip to content

add workflow to run tests, add test badge (#4) #5

add workflow to run tests, add test badge (#4)

add workflow to run tests, add test badge (#4) #5

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
checks: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run tests
run: ./gradlew test
- name: Generate test report
run: ./gradlew jacocoTestReport
if: always()
- name: Publish test results
uses: dorny/test-reporter@v1
if: always()
with:
name: Test Results
path: build/test-results/test/*.xml
reporter: java-junit