Skip to content

Commit f7efd20

Browse files
unity-test-summary@v1.0.0 (#1)
- Initial Release! 🎉🚀
1 parent 114cc76 commit f7efd20

File tree

16 files changed

+36578
-130
lines changed

16 files changed

+36578
-130
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Update Release Tags
22
on:
33
push:
4-
tags: v[0-9].[0-9].[0-9]
4+
tags: '*'
5+
workflow_dispatch:
56
jobs:
67
update-release-tags:
78
runs-on: ubuntu-latest
@@ -11,4 +12,4 @@ jobs:
1112
- uses: actions/checkout@v4
1213
with:
1314
fetch-depth: 0
14-
- uses: RageAgainstThePixel/update-action-release-tags@v1
15+
- uses: RageAgainstThePixel/update-action-release-tags@v1

.github/workflows/validate.yml

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- 'main'
66
pull_request:
77
branches:
8-
- '*'
8+
- '**'
99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
1111
concurrency:
@@ -17,7 +17,62 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
os: [ubuntu-latest, windows-latest, macos-latest]
20+
include: # for each os specify the build targets
21+
- os: ubuntu-latest
22+
unity-version: 2022.x
23+
build-target: StandaloneLinux64
24+
- os: ubuntu-latest
25+
unity-version: 6000.x
26+
build-target: StandaloneLinux64
27+
- os: windows-latest
28+
unity-version: 2022.x
29+
build-target: StandaloneWindows64
30+
- os: windows-latest
31+
unity-version: 6000.x
32+
build-target: StandaloneWindows64
33+
- os: macos-latest
34+
unity-version: 2022.x
35+
build-target: StandaloneOSX
36+
- os: macos-latest
37+
unity-version: 6000.x
38+
build-target: StandaloneOSX
2139
steps:
2240
- uses: actions/checkout@v4
23-
- run: echo "hello world"
41+
- uses: actions/checkout@v4
42+
with:
43+
repository: RageAgainstThePixel/com.utilities.async
44+
path: com.utilities.async
45+
ref: test
46+
- uses: RageAgainstThePixel/unity-setup@v1
47+
with:
48+
unity-version: ${{ matrix.unity-version }}
49+
build-targets: ${{ matrix.build-target }}
50+
version-file: ${{ github.workspace }}/com.utilities.async/Utilities.Async/ProjectSettings/ProjectVersion.txt
51+
- uses: RageAgainstThePixel/activate-unity-license@v1
52+
with:
53+
license: 'Personal'
54+
username: ${{ secrets.UNITY_USERNAME }}
55+
password: ${{ secrets.UNITY_PASSWORD }}
56+
- uses: RageAgainstThePixel/unity-action@v1
57+
name: '${{ matrix.build-target }}-Validate'
58+
with:
59+
log-name: '${{ matrix.build-target }}-Validate'
60+
args: '-quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset'
61+
- uses: RageAgainstThePixel/unity-action@v1
62+
name: '${{ matrix.build-target }}-Test'
63+
with:
64+
log-name: '${{ matrix.build-target }}-Test'
65+
build-target: ${{ matrix.build-target }}
66+
args: '-nographics -batchmode -runTests -testPlatform EditMode -testResults "${{ github.workspace }}/Logs/${{ matrix.build-target }}-results.xml"'
67+
- uses: actions/upload-artifact@v4
68+
if: success() || failure()
69+
with:
70+
compression-level: 0
71+
retention-days: 1
72+
name: '${{ github.run_number }}.${{ github.run_attempt }}-${{ matrix.os }}-${{ matrix.unity-version }}-${{ matrix.build-target }}-Artifacts'
73+
path: |
74+
${{ github.workspace }}/**/*.log
75+
- uses: ./ # RageAgainstThePixel/unity-test-summary
76+
if: success() || failure()
77+
with:
78+
test-results: ${{ github.workspace }}/Logs/*-results.xml

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# github-action-template
1+
# unity-test-summary
22

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

55
## How to use
66

77
### workflow
88

99
```yaml
1010
steps:
11-
- uses: RageAgainstThePixel/github-action-template@v1
11+
- uses: RageAgainstThePixel/unity-test-summary@v1
12+
with:
13+
test-results: 'path/to/test-results/**/*.xml'
1214
```
1315
1416
### inputs
1517
1618
| name | description | required |
1719
| ---- | ----------- | -------- |
18-
| .... | ........... | ........ |
19-
20-
### outputs
20+
| `test-results` | The path to the test results file(s). | true |

action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: github-action-template
1+
name: unity-test-summary
22
description: 'A GitHub Actions template repository for TypeScript based Actions'
3-
# inputs:
4-
# outputs:
3+
inputs:
4+
test-results:
5+
description: 'The path to the test results file(s).'
6+
required: true
57
runs:
68
using: 'node20'
79
main: 'dist/index.js'
8-
#post: 'dist/index.js'

0 commit comments

Comments
 (0)