Skip to content

002 - feat: unit tests #86

002 - feat: unit tests

002 - feat: unit tests #86

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: 'CI'
# Controls when the action will run.
on:
workflow_call:
workflow_dispatch:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches:
- main
pull_request:
jobs:
continuous-testing:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# Runs a single command using the runners shell
- name: Set up JDK 1.17
uses: actions/setup-java@v4
with:
distribution: "liberica"
java-version: "17"
cache: "maven"
- name: Compile
run: mvn compile
- name: Test
run: mvn verify
- uses: dorny/test-reporter@v1
with:
name: Test Results
path: "target/**/TEST*.xml"
reporter: java-junit