Skip to content

Commit

Permalink
Use self-hosted runner; Add failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolai Selivanov committed Nov 12, 2023
1 parent fb4e0d6 commit 0de0d6b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 29 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/activation.yml

This file was deleted.

11 changes: 3 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
environment: CommonEnv

env:
Expand Down Expand Up @@ -72,13 +72,8 @@ jobs:
- name: Build for demo project
run: ./BuildForDemo.command
- name: Demo project tests
uses: game-ci/unity-test-runner@v3
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: DemoUnityProj/CCG
githubToken: ${{ secrets.GITHUB_TOKEN }}
run: |
/Applications/Unity/Hub/Editor/2021.3.18f1/Unity.app/Contents/MacOS/Unity -runTests -batchmode -projectPath DemoUnityProj/CCG -testResults relults.xml -testPlatform Android
- name: Tag non-release
if: github.ref != 'refs/heads/master'
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ namespace CCG.Tests.Editor
{
public class CardsTests
{

[Test]
public void Fail()
{
Assert.Fail();
}

[Test]
public void GameStart_NoSelectedCards()
{
Expand Down
3 changes: 2 additions & 1 deletion DemoUnityProj/CCG/ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,13 @@ PlayerSettings:
androidSupportedAspectRatio: 1
androidMaxAspectRatio: 2.1
applicationIdentifier:
Android: com.DefaultCompany.CCG
Standalone: com.DefaultCompany.CCG
buildNumber:
Standalone: 0
iPhone: 0
tvOS: 0
overrideDefaultApplicationIdentifier: 0
overrideDefaultApplicationIdentifier: 1
AndroidBundleVersionCode: 1
AndroidMinSdkVersion: 22
AndroidTargetSdkVersion: 0
Expand Down
2 changes: 2 additions & 0 deletions DemoUnityProj/CCG/ProjectSettings/UnityConnectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ UnityConnectSettings:
m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events
m_EventUrl: https://cdp.cloud.unity3d.com/v1/events
m_ConfigUrl: https://config.uca.cloud.unity3d.com
m_DashboardUrl: https://dashboard.unity3d.com
m_TestInitMode: 0
CrashReportingSettings:
m_EventUrl: https://perf-events.cloud.unity3d.com
Expand All @@ -22,6 +23,7 @@ UnityConnectSettings:
m_Enabled: 0
m_TestMode: 0
m_InitializeOnStartup: 1
m_PackageRequiringCoreStatsPresent: 0
UnityAdsSettings:
m_Enabled: 0
m_InitializeOnStartup: 1
Expand Down

0 comments on commit 0de0d6b

Please sign in to comment.