2022-05-08 12:09:30 +01:00
|
|
|
name: Unity Test Runner
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-04-13 21:55:20 +01:00
|
|
|
- '*'
|
2023-08-23 16:14:56 +01:00
|
|
|
- '*/*'
|
2022-05-08 12:09:30 +01:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2023-04-13 23:26:54 +01:00
|
|
|
- '*'
|
2023-08-23 16:14:56 +01:00
|
|
|
- '*/*'
|
2022-05-08 12:09:30 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: "Unity Test Runner"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-05-08 19:56:48 +01:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup .NET
|
2023-03-28 15:02:09 +01:00
|
|
|
uses: actions/setup-dotnet@v3
|
2022-05-08 19:56:48 +01:00
|
|
|
with:
|
2022-11-29 15:55:26 +00:00
|
|
|
dotnet-version: 7.0.x
|
2022-05-08 19:56:48 +01:00
|
|
|
|
|
|
|
- name: Add GitHub NuGet source
|
|
|
|
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json"
|
|
|
|
|
|
|
|
- name: Restore dependencies
|
|
|
|
run: dotnet restore
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: dotnet build -c Release
|
|
|
|
|
|
|
|
- name: Copy artifacts to project
|
|
|
|
run: |
|
2022-05-08 19:58:25 +01:00
|
|
|
mkdir -p ./X10D.Unity.Tests/Assets/Libraries
|
2022-05-08 19:56:48 +01:00
|
|
|
cp -r ./X10D/bin/Release/netstandard2.1/X10D.dll ./X10D.Unity.Tests/Assets/Libraries/X10D.dll
|
|
|
|
cp -r ./X10D.Unity/bin/Release/netstandard2.1/X10D.Unity.dll ./X10D.Unity.Tests/Assets/Libraries/X10D.Unity.dll
|
|
|
|
|
|
|
|
- name: Unity - Test runner
|
2022-11-29 17:35:20 +00:00
|
|
|
uses: game-ci/unity-test-runner@v2.1.0
|
2022-05-08 19:56:48 +01:00
|
|
|
env:
|
|
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
|
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
|
|
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
|
|
with:
|
|
|
|
projectPath: X10D.Unity.Tests
|
|
|
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|