Skip to content

Commit

Permalink
unity-test-summary@v1.0.0 (#1)
Browse files Browse the repository at this point in the history
- Initial Release!
  • Loading branch information
StephenHodgson authored Feb 2, 2025
1 parent cb89c89 commit 0d4ce77
Show file tree
Hide file tree
Showing 19 changed files with 37,706 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @buildalon/buildalon
15 changes: 15 additions & 0 deletions .github/workflows/update-release-tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Update Release Tags
on:
push:
tags: '*'
workflow_dispatch:
jobs:
update-release-tags:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: RageAgainstThePixel/update-action-release-tags@v1
77 changes: 77 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: validate
on:
push:
branches:
- 'main'
pull_request:
branches:
- '**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
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
- uses: actions/checkout@v4
with:
repository: RageAgainstThePixel/com.utilities.async
path: com.utilities.async
- uses: buildalon/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: buildalon/activate-unity-license@v1
with:
license: 'Personal'
username: ${{ secrets.UNITY_USERNAME }}
password: ${{ secrets.UNITY_PASSWORD }}
- uses: buildalon/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: buildalon/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: ./ # buildalon/unity-test-summary
if: success() || failure()
with:
test-results: ${{ github.workspace }}/Logs/*-results.xml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Buildalon
Copyright (c) 2025 Virtual Maker Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
# unity-test-summary

A GitHub action to gather and display Unit Tests from the Unity Game Engine.

## How to use

### workflow

```yaml
steps:
- uses: buildalon/unity-test-summary@v1
with:
test-results: 'path/to/test-results/**/*.xml'
```
### inputs
| name | description | required |
| ---- | ----------- | -------- |
| `test-results` | The path to the test results file(s). | true |
12 changes: 12 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Buildalon unity-test-summary
description: 'A GitHub action to gather and display Unit Tests from the Unity Game Engine.'
branding:
icon: 'list'
color: 'red'
inputs:
test-results:
description: 'The path to the test results file(s).'
required: true
runs:
using: 'node20'
main: 'dist/index.js'
Loading

0 comments on commit 0d4ce77

Please sign in to comment.