Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
a6f67ec
unity-test-summary@v1.0.0
StephenHodgson Jan 30, 2025
1bd4066
checkout self
StephenHodgson Jan 30, 2025
d9b3437
remove build step
StephenHodgson Jan 30, 2025
8b769b0
add some parsing unit tests
StephenHodgson Jan 30, 2025
0a2b84b
Update validate.yml
StephenHodgson Jan 30, 2025
f3dff3c
cleanup results
StephenHodgson Jan 30, 2025
7ab0d42
test failure case
StephenHodgson Jan 30, 2025
d687d3b
add simple summary
StephenHodgson Jan 30, 2025
51cfe04
write
StephenHodgson Jan 30, 2025
8718d7a
EOL
StephenHodgson Jan 30, 2025
fa5021b
update heading
StephenHodgson Jan 30, 2025
7e513c1
update heading
StephenHodgson Jan 30, 2025
9e85258
add foldouts
StephenHodgson Jan 30, 2025
342ed63
indent
StephenHodgson Jan 30, 2025
f6f36f2
automatically open/close tests if passed or failed
StephenHodgson Jan 30, 2025
6f16da2
update indent
StephenHodgson Jan 30, 2025
4f381e1
revert indent
StephenHodgson Jan 30, 2025
f46b13d
try different indent strategy
StephenHodgson Jan 30, 2025
f8f2169
annotations
StephenHodgson Jan 31, 2025
24fe48b
remove indent
StephenHodgson Jan 31, 2025
1c77128
fix utp annotation
StephenHodgson Jan 31, 2025
5511149
typo
StephenHodgson Jan 31, 2025
818f7ae
remove nested foldouts for test suites
StephenHodgson Jan 31, 2025
a0adf14
update test suite name
StephenHodgson Jan 31, 2025
59ec0ae
fix annotation typo
StephenHodgson Jan 31, 2025
cc922c3
remove .\ from start of file
StephenHodgson Jan 31, 2025
e2d8f0f
try to fix file path relative to unity project
StephenHodgson Jan 31, 2025
49e27b2
log
StephenHodgson Jan 31, 2025
290aed6
try to get test mode
StephenHodgson Jan 31, 2025
5b51112
update annotations
StephenHodgson Jan 31, 2025
06a51bc
tweak
StephenHodgson Jan 31, 2025
07c3ea5
remove test suite name
StephenHodgson Jan 31, 2025
3815f02
props as map
StephenHodgson Jan 31, 2025
0a75018
refactor prop lookup
StephenHodgson Jan 31, 2025
9d3dced
get it a different way
StephenHodgson Jan 31, 2025
8343995
reformat
StephenHodgson Jan 31, 2025
db47b6c
updated debu
StephenHodgson Jan 31, 2025
0e8dd42
updated debug
StephenHodgson Jan 31, 2025
02059aa
tweaks
StephenHodgson Jan 31, 2025
8cca690
fix annotation
StephenHodgson Jan 31, 2025
0565256
convert to debug
StephenHodgson Jan 31, 2025
e211b69
update readme
StephenHodgson Jan 31, 2025
967ed0d
change output strategy
StephenHodgson Jan 31, 2025
87b07c5
parse logs
StephenHodgson Jan 31, 2025
594473a
fix ansi
StephenHodgson Jan 31, 2025
8132975
fix ansi regex match
StephenHodgson Jan 31, 2025
c219f30
filter out more lines
StephenHodgson Jan 31, 2025
b4d2dcd
reformat test case header
StephenHodgson Jan 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/update-release-tags.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Update Release Tags
on:
push:
tags: v[0-9].[0-9].[0-9]
tags: '*'
workflow_dispatch:
jobs:
update-release-tags:
runs-on: ubuntu-latest
Expand All @@ -11,4 +12,4 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: RageAgainstThePixel/update-action-release-tags@v1
- uses: RageAgainstThePixel/update-action-release-tags@v1
61 changes: 58 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- 'main'
pull_request:
branches:
- '*'
- '**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
Expand All @@ -17,7 +17,62 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include: # for each os specify the build targets
- os: ubuntu-latest
unity-version: 2022.x
build-target: StandaloneLinux64
- os: ubuntu-latest
unity-version: 6000.x
build-target: StandaloneLinux64
- os: windows-latest
unity-version: 2022.x
build-target: StandaloneWindows64
- os: windows-latest
unity-version: 6000.x
build-target: StandaloneWindows64
- os: macos-latest
unity-version: 2022.x
build-target: StandaloneOSX
- os: macos-latest
unity-version: 6000.x
build-target: StandaloneOSX
steps:
- uses: actions/checkout@v4
- run: echo "hello world"
- uses: actions/checkout@v4
with:
repository: RageAgainstThePixel/com.utilities.async
path: com.utilities.async
ref: test
- uses: RageAgainstThePixel/unity-setup@v1
with:
unity-version: ${{ matrix.unity-version }}
build-targets: ${{ matrix.build-target }}
version-file: ${{ github.workspace }}/com.utilities.async/Utilities.Async/ProjectSettings/ProjectVersion.txt
- uses: RageAgainstThePixel/activate-unity-license@v1
with:
license: 'Personal'
username: ${{ secrets.UNITY_USERNAME }}
password: ${{ secrets.UNITY_PASSWORD }}
- uses: RageAgainstThePixel/unity-action@v1
name: '${{ matrix.build-target }}-Validate'
with:
log-name: '${{ matrix.build-target }}-Validate'
args: '-quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset'
- 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 }}-results.xml"'
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
compression-level: 0
retention-days: 1
name: '${{ github.run_number }}.${{ github.run_attempt }}-${{ matrix.os }}-${{ matrix.unity-version }}-${{ matrix.build-target }}-Artifacts'
path: |
${{ github.workspace }}/**/*.log
- uses: ./ # RageAgainstThePixel/unity-test-summary
if: success() || failure()
with:
test-results: ${{ github.workspace }}/Logs/*-results.xml
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# github-action-template
# unity-test-summary

A GitHub Actions template repository for TypeScript based Actions.
A GitHub action to gather and display Unit Tests from the Unity Game Engine.

## How to use

### workflow

```yaml
steps:
- uses: RageAgainstThePixel/github-action-template@v1
- uses: RageAgainstThePixel/unity-test-summary@v1
with:
test-results: 'path/to/test-results/**/*.xml'
```

### inputs

| name | description | required |
| ---- | ----------- | -------- |
| .... | ........... | ........ |

### outputs
| `test-results` | The path to the test results file(s). | true |
9 changes: 5 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: github-action-template
name: unity-test-summary
description: 'A GitHub Actions template repository for TypeScript based Actions'
# inputs:
# outputs:
inputs:
test-results:
description: 'The path to the test results file(s).'
required: true
runs:
using: 'node20'
main: 'dist/index.js'
#post: 'dist/index.js'
Loading