From 0975a0895bbdcea7d1280e5691cd56847dc9e00c Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Sun, 18 Aug 2024 20:34:11 -0400 Subject: [PATCH] add unit tests --- .github/workflows/unity.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/unity.yml b/.github/workflows/unity.yml index 93eb948..eafdef3 100644 --- a/.github/workflows/unity.yml +++ b/.github/workflows/unity.yml @@ -47,6 +47,12 @@ jobs: with: log-name: 'project-validation' args: '-quit -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject' + - uses: RageAgainstThePixel/unity-action@v1 + name: '${{ matrix.build-target }}-Test' + with: + log-name: '${{ matrix.build-target }}-Test' + build-target: ${{ matrix.build-target }} + args: '-nographics -batchmode -runTests -testPlatform EditMode -testResults "${{ github.workspace }}/Logs/${{ matrix.build-target }}-test-results.xml"' - uses: RageAgainstThePixel/unity-action@v1 name: '${{ matrix.build-target }}-Build' with: @@ -62,6 +68,7 @@ jobs: retention-days: 1 name: '${{ github.run_number }}.${{ github.run_attempt }}-${{ matrix.os }}-${{ matrix.unity-versions }}-${{ matrix.build-target }}-Artifacts' path: | + ${{ github.workspace }}/Logs/*-test-results.xml ${{ github.workspace }}/**/*.log ${{ env.UNITY_PROJECT_PATH || github.workspace }}/Builds/${{ matrix.build-target }}/**/* !${{ env.UNITY_PROJECT_PATH || github.workspace }}/Library/**/*