Coeur-Morny-Cono/.github/workflows/unit-test.yml
Eyre_S 58fb126394
Some checks reported warnings
Tests / check-build (push) Has been cancelled
Tests / check-unit-tests (push) Has been cancelled
Tests / check-assembly-run (push) Has been cancelled
Squashed GitHub workflows
commit 0cb3f1eae52f78fd300bac7af150af5821990e5c
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 15:09:52 2024 +0800

    test actions x18

commit 436efe382f4b0c2051b9945984371e1573498c00
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 15:00:45 2024 +0800

    test actions x17

commit bccf4feafa8a8759e987c605cd37f6ed4b996d61
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 14:53:28 2024 +0800

    test actions x16

commit cbe0b62d45dcc11e429b411b9feb3523e7ca18be
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 14:38:36 2024 +0800

    test actions x15

commit 3dd08270475254cbf04c137fe7d6b79a47aef189
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 14:25:03 2024 +0800

    test actions x14

commit 9c9c52d74570a1b5a18fcc4ad4a752eeb98d3d12
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 14:22:14 2024 +0800

    test actions x13

commit 887d728c4a756bd6152032d51f2b470f85103f8d
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 14:03:04 2024 +0800

    test actions x12

commit 370258a875df42b7b4d00b4e98e808ada328415f
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 13:39:33 2024 +0800

    test actions x11

commit 2d3b0b3f0ca266d7cefe515cebcef804bb248b33
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 13:37:34 2024 +0800

    test actions x10

commit 4e5563d16a0d8236a32d6809767e2926fa495a41
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 13:36:29 2024 +0800

    test actions x9

commit 38ae144cee7428835fef1e7b06cb60f968a098c6
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 13:34:50 2024 +0800

    test actions x8

commit 21ee2ed1609e2aa475102616fbbcd3e309268b43
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 13:29:07 2024 +0800

    test actions x7

commit c07ae3d3a95ed044456d8f14a70fe17de20ec43e
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 13:08:24 2024 +0800

    test actions x6

commit 54a3c67cb22283da803838e6fab74489803a4896
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 12:59:29 2024 +0800

    test actions x5

commit af690cdcf50c835e4462043da0ad3eed0d6c95a0
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 12:50:04 2024 +0800

    test actions x4

commit 484ee0fb0fe0035a3d12eb66dbada0f3d4ed73b2
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 12:46:40 2024 +0800

    test actions x3

commit 6d96fd72b81bb88042fb4138857634bdbbd78673
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 12:38:09 2024 +0800

    test actions x2

commit 9965f78406
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 01:18:33 2024 +0800

    test actions fix

commit 78e2c4b65f
Author: Eyre_S <sukazyo@outlook.com>
Date:   Fri Aug 9 01:15:21 2024 +0800

    test actions
2024-08-09 15:11:34 +08:00

40 lines
1.3 KiB
YAML

name: "Unit Test"
run-name: "Test projects using Unit Test framework to ensure code quality"
on: [workflow_call]
jobs:
build:
uses: ./.github/workflows/build.yml
unit-test:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: "Setup cached built project"
uses: actions/cache/restore@v4
with:
path: "./"
key: ${{ runner.os }}-build-${{ github.sha }}
fail-on-cache-miss: 'true'
- name: "Setup Java 21 with SBT"
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: sbt
- name: "Run unit tests"
id: do-unit-test
run: sbt test
- name: "Upload test reports as artifact"
if: steps.do-unit-test.conclusion == 'failure' || steps.do-unit-test.conclusion == 'success'
uses: actions/upload-artifact@v4
with:
name: 'unit-test-report'
path: ./*/target/test-reports/*
- name: "Publish test report to summary"
if: steps.do-unit-test.conclusion == 'failure' || steps.do-unit-test.conclusion == 'success'
uses: phoenix-actions/test-reporting@v15
with:
output-to: 'step-summary'
name: 'Unit Tests Report'
path: ./*/target/test-reports/*.xml
reporter: 'java-junit'