-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
19 changed files
with
37,706 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @buildalon/buildalon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
Oops, something went wrong.