Skip to content

Commit 5f02778

Browse files
committed
Merge remote-tracking branch 'origin/development'
2 parents df744b6 + d874228 commit 5f02778

File tree

305 files changed

+22700
-3122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

305 files changed

+22700
-3122
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ assignees: ''
1414
(2019.4.40f1, 2020.3.31f1, 2020.3.40f1, 2021.3.2f1, 2021.3.11f1, etc)
1515

1616
**What version of AltTester® Unity SDK are you using?**
17-
(1.6.6, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.2)
17+
(1.6.6, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.2, 2.2.4)
1818

1919
**On what device are you trying to run the test?**
2020
(Android, iOS)

.github/workflows/push.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- 'Bindings~/robot/**'
3939
4040
Roslyn-Analyzer-dotnet:
41-
runs-on: [self-hosted, macOS]
41+
runs-on: [self-hosted, MAC37]
4242
needs: paths-filter
4343
steps:
4444
- uses: actions/checkout@v2
@@ -51,7 +51,7 @@ jobs:
5151
run: dotnet build AltTester-Unity-SDK.sln --no-restore -warnaserror -p:EnforceCodeStyleInBuild=true -p:EnforceCodeStyleInIDE=true
5252

5353
build-macOS:
54-
runs-on: [self-hosted, macOS]
54+
runs-on: [self-hosted, MAC37]
5555
needs: Roslyn-Analyzer-dotnet
5656
if: needs.paths-filter.outputs.csharp == 'true' || needs.paths-filter.outputs.scenes == 'true' || needs.paths-filter.outputs.python == 'true' || needs.paths-filter.outputs.java == 'true' || needs.paths-filter.outputs.robot == 'true'
5757
steps:
@@ -85,7 +85,7 @@ jobs:
8585
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
8686

8787
build-android:
88-
runs-on: [self-hosted, macOS]
88+
runs-on: [self-hosted, MAC37]
8989
needs: Roslyn-Analyzer-dotnet
9090

9191
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/development' || needs.paths-filter.outputs.proxy == 'true' || needs.paths-filter.outputs.scenes == 'true' || needs.paths-filter.outputs.python == 'true'
@@ -120,7 +120,7 @@ jobs:
120120
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
121121

122122
build-ipa:
123-
runs-on: [self-hosted, macOS]
123+
runs-on: [self-hosted, MAC37]
124124
needs: Roslyn-Analyzer-dotnet
125125
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/development' || needs.paths-filter.outputs.proxy == 'true' || needs.paths-filter.outputs.scenes == 'true' || needs.paths-filter.outputs.python == 'true'
126126
steps:
@@ -155,7 +155,7 @@ jobs:
155155
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
156156

157157
test-CSharp-Editor:
158-
runs-on: [self-hosted, macOS]
158+
runs-on: [self-hosted, MAC37]
159159
needs: build-macOS
160160
if: needs.paths-filter.outputs.csharp == 'true' || needs.paths-filter.outputs.scenes == 'true' || needs.paths-filter.outputs.python == 'true' || needs.paths-filter.outputs.java == 'true'
161161
steps:
@@ -198,7 +198,7 @@ jobs:
198198
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
199199

200200
test-DotNet:
201-
runs-on: [self-hosted, macOS]
201+
runs-on: [self-hosted, MAC37]
202202
needs: build-macOS
203203
if: needs.paths-filter.outputs.csharp == 'true' || needs.paths-filter.outputs.scenes == 'true'
204204
steps:
@@ -239,7 +239,7 @@ jobs:
239239
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
240240

241241
test-Python:
242-
runs-on: [self-hosted, macOS]
242+
runs-on: [self-hosted, MAC37]
243243
needs: build-macOS
244244
if: needs.paths-filter.outputs.python == 'true' || needs.paths-filter.outputs.scenes == 'true'
245245
steps:
@@ -312,7 +312,7 @@ jobs:
312312
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
313313

314314
test-Robot:
315-
runs-on: [self-hosted, macOS]
315+
runs-on: [self-hosted, MAC37]
316316
needs: build-macOS
317317
if: needs.paths-filter.outputs.python == 'true' || needs.paths-filter.outputs.scenes == 'true' || needs.paths-filter.outputs.robot == 'true'
318318
steps:
@@ -336,11 +336,13 @@ jobs:
336336

337337
- name: Install dependencies
338338
run: |
339-
pip install --upgrade pip setuptools wheel
340-
pip install -r "Bindings~/robot/requirements.txt"
341-
pip install -e "Bindings~/robot" --root "Bindings~/robot"
342-
pip uninstall -y AltTester-Driver
343-
pip install -e "Bindings~/python" --root "Bindings~/python"
339+
pip install --upgrade pip setuptools wheel --break-system-packages
340+
pip install -r "Bindings~/robot/requirements.txt" --break-system-packages
341+
pip install -e "Bindings~/robot" --break-system-packages
342+
pip uninstall -y AltTester-Driver --break-system-packages
343+
pip install -e "Bindings~/python" --break-system-packages
344+
345+
pip list
344346
345347
- name: Run Robot tests
346348
run: |
@@ -359,7 +361,7 @@ jobs:
359361
**/output.xml
360362
361363
test-Java:
362-
runs-on: [self-hosted, macOS]
364+
runs-on: [self-hosted, MAC37]
363365
needs: build-macOS
364366
if: needs.paths-filter.outputs.java == 'true' || needs.paths-filter.outputs.scenes == 'true'
365367
steps:
@@ -406,7 +408,7 @@ jobs:
406408
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
407409

408410
copyright:
409-
runs-on: [self-hosted, macOS]
411+
runs-on: [self-hosted, MAC37]
410412
steps:
411413
- run: |
412414
pwsh copyright.ps1
@@ -425,7 +427,7 @@ jobs:
425427
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
426428

427429
test-Python-Browserstack-ios-android:
428-
runs-on: [self-hosted, macOS]
430+
runs-on: [self-hosted, MAC37]
429431
needs:
430432
- build-android
431433
- build-ipa

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
publish-python-pip-package:
10-
runs-on: [self-hosted, macOS]
10+
runs-on: [self-hosted, MAC37]
1111

1212
steps:
1313
- uses: actions/checkout@v3
@@ -27,7 +27,7 @@ jobs:
2727
python3 -m twine upload dist/*
2828
2929
publish-robot-pip-package:
30-
runs-on: [self-hosted, macOS]
30+
runs-on: [self-hosted, MAC37]
3131

3232
steps:
3333
- uses: actions/checkout@v3
@@ -60,21 +60,22 @@ jobs:
6060
run: |
6161
cd "Bindings~/dotnet"
6262
dotnet pack AltDriver/AltDriver.csproj -c release
63-
dotnet nuget push AltDriver/bin/release/AltTester-Driver.2.2.2.nupkg --api-key $NUGET_DEPLOY_KEY --source https://api.nuget.org/v3/index.json
63+
dotnet nuget push AltDriver/bin/release/AltTester-Driver.2.2.4.nupkg --api-key $NUGET_DEPLOY_KEY --source https://api.nuget.org/v3/index.json
6464
6565
create-unity-package:
66-
runs-on: [self-hosted, macOS]
66+
runs-on: [self-hosted, MAC37]
6767
steps:
6868
- uses: actions/checkout@v3
6969
- name: Create Unity Package
7070
run: |
7171
mkdir -p public/AltTester || true
7272
mkdir -p public/SampleScenes || true
73+
VERSION=$(jq -r '.version' Assets/AltTester/package.json | sed 's/\./_/g')
7374
$UNITY_2021_3_HOME -batchmode -projectPath $CI_PROJECT_DIR -executeMethod AltTester.AltTesterUnitySDK.Editor.AltTesterEditorWindow.CreatePackages -logFile createPackages.log -quit
7475
ls
7576
AUT=$(find -E . -regex ".*/AltTester.*\.unitypackage")
76-
cp $AUT public/AltTester/AltTester.unitypackage
77-
cp $AUT public/AltTester/AltTester_2_0_1.unitypackage
77+
cp $AUT public/AltTester/AltTesterUnitySDK.unitypackage
78+
cp $AUT public/AltTester/AltTesterUnitySDK_${VERSION}.unitypackage
7879
cp SampleScenes.unitypackage public/AltTester/SampleScenes.unitypackage
7980
- uses: actions/upload-artifact@v4
8081
with:

.github/workflows/runs-at-night.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
jobs:
1515
build-webgl:
1616
timeout-minutes: 60
17-
runs-on: [self-hosted, macOS]
17+
runs-on: [self-hosted, MAC37]
1818

1919
steps:
2020
- uses: actions/checkout@v4
@@ -54,7 +54,7 @@ jobs:
5454

5555
build-ios:
5656
timeout-minutes: 60
57-
runs-on: [self-hosted, macOS]
57+
runs-on: [self-hosted, MAC37]
5858

5959
steps:
6060
- uses: actions/checkout@v4
@@ -97,7 +97,7 @@ jobs:
9797

9898
build-android:
9999
timeout-minutes: 60
100-
runs-on: [self-hosted, macOS]
100+
runs-on: [self-hosted, MAC37]
101101

102102
steps:
103103
- uses: actions/checkout@v4
@@ -139,7 +139,7 @@ jobs:
139139
timeout-minutes: 60 # Set job timeout to 1 hour
140140
needs: build-webgl
141141

142-
runs-on: [self-hosted, macOS]
142+
runs-on: [self-hosted, MAC37]
143143

144144
steps:
145145
- uses: actions/checkout@v4
@@ -203,7 +203,7 @@ jobs:
203203
timeout-minutes: 60 # Set job timeout to 1 hour
204204
needs: build-webgl
205205

206-
runs-on: [self-hosted, macOS]
206+
runs-on: [self-hosted, MAC37]
207207

208208
steps:
209209
- uses: actions/checkout@v4
@@ -265,12 +265,11 @@ jobs:
265265
name: webgl-python-logs
266266
path: "**/*.log"
267267

268-
269268
test-webgl-java:
270269
timeout-minutes: 60 # Set job timeout to 1 hour
271270
needs: build-webgl
272271

273-
runs-on: [self-hosted, macOS]
272+
runs-on: [self-hosted, MAC37]
274273

275274
steps:
276275
- uses: actions/checkout@v4
@@ -336,7 +335,7 @@ jobs:
336335
test-ios-browserstack-python:
337336
needs: build-ios
338337
timeout-minutes: 60 # Set job timeout to 1 hour
339-
runs-on: [self-hosted, macOS]
338+
runs-on: [self-hosted, MAC37]
340339

341340
env:
342341
RUN_IN_BROWSERSTACK: true
@@ -356,9 +355,15 @@ jobs:
356355
- uses: actions/setup-python@v5
357356
with:
358357
python-version: ${{ env.PYTHON_VERSION }}
358+
- name: Create and activate virtual environment
359+
run: |
360+
python3 -m venv venv
361+
source venv/bin/activate
362+
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV # Export the virtual environment path
359363
360364
- name: Install dependencies
361365
run: |
366+
source venv/bin/activate # Activate the virtual environment
362367
pip install --upgrade pip setuptools wheel
363368
pip uninstall -y AltTester-Driver
364369
pip install -r "Bindings~/python/requirements.txt"
@@ -417,7 +422,7 @@ jobs:
417422
test-android-browserstack-python:
418423
needs: build-android
419424
timeout-minutes: 60 # Set job timeout to 1 hour
420-
runs-on: [self-hosted, macOS]
425+
runs-on: [self-hosted, MAC37]
421426

422427
env:
423428
RUN_IN_BROWSERSTACK: true
@@ -436,10 +441,17 @@ jobs:
436441
name: android-build
437442
path: Bindings~/python/
438443

444+
- name: Create and activate virtual environment
445+
run: |
446+
python3 -m venv venv
447+
source venv/bin/activate
448+
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV # Export the virtual environment path
449+
439450
- run: ls -l Bindings~/python/
440451

441452
- name: Install dependencies
442453
run: |
454+
source venv/bin/activate # Activate the virtual environment
443455
pip install --upgrade pip setuptools wheel
444456
pip uninstall -y AltTester-Driver
445457
pip install -r "Bindings~/python/requirements.txt"
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: upload-package-to-staging
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- development
8+
9+
jobs:
10+
create-unity-package:
11+
runs-on: [self-hosted, MAC37]
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Create Unity Package
15+
run: |
16+
mkdir -p public/AltTester || true
17+
mkdir -p public/SampleScenes || true
18+
VERSION=$(jq -r '.version' Assets/AltTester/package.json | sed 's/\./_/g')
19+
$UNITY_2021_3_HOME -batchmode -projectPath $CI_PROJECT_DIR -executeMethod AltTester.AltTesterUnitySDK.Editor.AltTesterEditorWindow.CreatePackages -logFile createPackages.log -quit
20+
ls
21+
AUT=$(find -E . -regex ".*/AltTester.*\.unitypackage")
22+
cp $AUT public/AltTester/AltTesterUnitySDK.unitypackage
23+
cp $AUT public/AltTester/AltTesterUnitySDK_${VERSION}.unitypackage
24+
cp SampleScenes.unitypackage public/AltTester/SampleScenes.unitypackage
25+
- uses: actions/upload-artifact@v4
26+
with:
27+
name: AltTester
28+
path: public/AltTester
29+
30+
upload-unity-package:
31+
runs-on: ubuntu-latest
32+
needs: create-unity-package
33+
34+
steps:
35+
- uses: actions/checkout@v3
36+
37+
- uses: actions/download-artifact@v4
38+
with:
39+
name: AltTester
40+
path: AltTester/
41+
42+
- name: Upload AltTesterPackage
43+
uses: appleboy/scp-action@v0.1.7
44+
with:
45+
source: AltTester/*
46+
target: ${{ secrets.SDK_PATH }}
47+
host: ${{ secrets.HOST_IP_ALTTESTER }}
48+
port: ${{ secrets.PORT_DEV_ALTTESTER }}
49+
username: ${{ secrets.USERNAME_ALTTESTER }}
50+
password: ${{ secrets.PASSWORD_ALTTESTER }}
51+
rm: true
52+
strip_components: 1

Assets/AltTester/Editor/DefaultTestExample.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using NUnit.Framework;
2-
using AltTester.AltTesterUnitySDK.Driver;
2+
using AltTester.AltTesterSDK.Driver;
33

44
public class #SCRIPTNAME#
55
{ //Important! If your test file is inside a folder that contains an .asmdef file, please make sure that the assembly definition references NUnit.

Assets/AltTester/Editor/Scripts/AltTesterEditor/AltBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License
1919
using System.IO;
2020
using System.Linq;
2121
using AltTester.AltTesterUnitySDK.Commands;
22-
using AltTester.AltTesterUnitySDK.Driver;
22+
using AltTester.AltTesterSDK.Driver;
2323
using AltTester.AltTesterUnitySDK.Editor.Logging;
2424
#if UNITY_2021_3_OR_NEWER && ADDRESSABLES
2525
using UnityEditor.AddressableAssets;

Assets/AltTester/Editor/Scripts/AltTesterEditor/AltEditorConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License
1919
using AltTester.AltTesterUnitySDK;
2020
using UnityEngine;
2121
using System;
22-
using AltTester.AltTesterUnitySDK.Driver;
22+
using AltTester.AltTesterSDK.Driver;
2323
using AltTester.AltTesterUnitySDK.Editor.Platform;
2424

2525
namespace AltTester.AltTesterUnitySDK.Editor

Assets/AltTester/Editor/Scripts/AltTesterEditor/AltTestRunner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You should have received a copy of the GNU General Public License
2121
using System.Linq;
2222
using System.Reflection;
2323
using System.Xml;
24-
using AltTester.AltTesterUnitySDK.Driver;
24+
using AltTester.AltTesterSDK.Driver;
2525
using AltTester.AltTesterUnitySDK.Editor.Logging;
2626
using AltTester.AltTesterUnitySDK.Editor.Platform;
2727
using Newtonsoft.Json;

Assets/AltTester/Editor/Scripts/AltTesterEditor/AltTesterEditorWindow.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ You should have received a copy of the GNU General Public License
2020
using System.Collections.Generic;
2121
using System.IO;
2222
using System.Linq;
23+
using System.Text.RegularExpressions;
2324
using System.Threading;
2425
using AltTester.AltTesterUnitySDK.Commands;
25-
using AltTester.AltTesterUnitySDK.Driver;
26+
using AltTester.AltTesterSDK.Driver;
2627
using AltTester.AltTesterUnitySDK.Editor.Logging;
2728
using AltTester.AltTesterUnitySDK.Editor.Platform;
2829
using Unity.EditorCoroutines.Editor;
@@ -946,7 +947,7 @@ private void displayBuildSettings()
946947
labelAndInputFieldHorizontalLayout("Company Name*", ref companyName);
947948
UnityEditor.PlayerSettings.companyName = companyName;
948949

949-
var productName = UnityEditor.PlayerSettings.productName;
950+
var productName = Regex.Replace(UnityEditor.PlayerSettings.productName, "[^a-zA-Z0-9 _-]", "");
950951
labelAndInputFieldHorizontalLayout("Product Name*", ref productName);
951952
UnityEditor.PlayerSettings.productName = productName;
952953

0 commit comments

Comments
 (0)