Skip to content

Commit 9477bcf

Browse files
committed
ci: load unity 6 profile after alttester setup, fix concurrency config, unity 6 deeplink, symbolic links for tests
1 parent f6b4201 commit 9477bcf

File tree

104 files changed

+61642
-86
lines changed

Some content is hidden

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

104 files changed

+61642
-86
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ sample-unity6/Assets/Editor text=auto
77
sample-unity6/Assets/Scenes.meta text=auto
88
sample-unity6/Assets/Scripts.meta text=auto
99
sample-unity6/Assets/Editor.meta text=auto
10+
sample-unity6/Tests text=auto

.github/workflows/ui-tests.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,26 @@ jobs:
5959
if: github.event_name != 'workflow_dispatch' || github.event.inputs.targetPlatform == 'All' || github.event.inputs.targetPlatform == matrix.targetPlatform
6060
with:
6161
lfs: true
62+
- name: Setup symlinks for Unity 6 project
63+
if: contains(matrix.targetPlatform, 'Unity6') && (github.event_name != 'workflow_dispatch' || github.event.inputs.targetPlatform == 'All' || github.event.inputs.targetPlatform == matrix.targetPlatform)
64+
run: |
65+
echo "Setting up symlinks for sample-unity6..."
66+
cd sample-unity6/Assets
67+
rm -rf Scenes Scripts Editor
68+
rm -f Scenes.meta Scripts.meta Editor.meta
69+
ln -s ../../sample/Assets/Scenes Scenes
70+
ln -s ../../sample/Assets/Scripts Scripts
71+
ln -s ../../sample/Assets/Editor Editor
72+
ln -s ../../sample/Assets/Scenes.meta Scenes.meta
73+
ln -s ../../sample/Assets/Scripts.meta Scripts.meta
74+
ln -s ../../sample/Assets/Editor.meta Editor.meta
75+
echo "✅ Symlinks for Assets created successfully!"
76+
ls -la Scenes Scripts Editor
77+
cd ..
78+
rm -rf Tests
79+
ln -s ../sample/Tests Tests
80+
echo "✅ Symlink for Tests created successfully!"
81+
ls -la Tests
6282
- uses: actions/cache@v3
6383
if: github.event_name != 'workflow_dispatch' || github.event.inputs.targetPlatform == 'All' || github.event.inputs.targetPlatform == matrix.targetPlatform
6484
with:
@@ -101,21 +121,24 @@ jobs:
101121
test_script: pytest -xs test/test_mac.py::MacTest
102122
projectPath: sample
103123
unityAppName: SampleApp
124+
concurrency_group: macos
104125
- targetPlatform: StandaloneOSX-Unity6
105126
runs-on: [self-hosted, macOS]
106127
test_script: pytest -xs test/test_mac.py::MacTest
107128
projectPath: sample-unity6
108129
unityAppName: Sample Unity 6 macOS
130+
concurrency_group: macos
109131
- targetPlatform: StandaloneWindows64
110132
runs-on: [self-hosted, windows]
111133
test_script: python -m pytest -xs test/test_windows.py::WindowsTest
112134
projectPath: sample
113135
unityAppName: SampleApp
136+
concurrency_group: windows
114137
# - targetPlatform: Android
115138
# runs-on: [ self-hosted, macOS ]
116139
# test_script: browserstack-sdk pytest -s ./test/test_android.py --browserstack.config "browserstack.android.yml"
117140
concurrency:
118-
group: ui-tests-email-inbox
141+
group: ui-tests-email-inbox-${{ matrix.concurrency_group }}
119142
cancel-in-progress: false # Let tests complete rather than canceling
120143
runs-on: ${{ matrix.runs-on }}
121144
steps:
@@ -140,7 +163,7 @@ jobs:
140163
path: ${{ matrix.projectPath }}/Tests
141164
- name: Make macOS artifact executable
142165
if: contains(matrix.targetPlatform, 'StandaloneOSX') && (github.event_name != 'workflow_dispatch' || github.event.inputs.targetPlatform == 'All' || github.event.inputs.targetPlatform == matrix.targetPlatform)
143-
run: chmod +x ${{ matrix.projectPath }}/Tests/${{ matrix.unityAppName }}.app/Contents/MacOS/*
166+
run: chmod -R +x '${{ matrix.projectPath }}/Tests/${{ matrix.unityAppName }}.app/Contents/MacOS'
144167
- uses: actions/setup-python@v4
145168
if: github.event_name != 'workflow_dispatch' || github.event.inputs.targetPlatform == 'All' || github.event.inputs.targetPlatform == matrix.targetPlatform
146169
with:

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,7 @@ __pycache__/
111111
*.pyc
112112
.pytest_cache/
113113

114-
xcuserdata/
114+
xcuserdata/
115+
116+
logFile.log
117+
logFile-improved.log

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ This repository contains two sample projects:
2424
- **`sample/`** - Unity 2021.3.26f1 sample project
2525
- **`sample-unity6/`** - Unity 6 sample project *(work in progress)*
2626

27-
Both projects share the same Scenes, Scripts, and Editor folders via symbolic links, providing a single source of truth for the sample code. See [`sample-unity6/README.md`](sample-unity6/README.md) for setup instructions.
27+
Both projects share the same Scenes, Scripts, Editor folders, and Tests via symbolic links, providing a single source of truth for the sample code. See [`sample-unity6/README.md`](sample-unity6/README.md) for setup instructions.
2828

2929
### First Time Setup (for contributors)
3030

31-
The `sample-unity6` project uses symbolic links to share Scenes, Scripts, and Editor folders with the `sample` project.
31+
The `sample-unity6` project uses symbolic links to share Scenes, Scripts, Editor folders, and Tests with the `sample` project.
3232

3333
**macOS/Linux:** Symlinks are created automatically when you clone/pull - no action needed.
3434

3535
**Windows:** Check if symlinks were created correctly:
36-
1. Navigate to `sample-unity6/Assets/`
37-
2. Check if `Scenes`, `Scripts`, and `Editor` are folders (symlinks work) or small text files (symlinks didn't work)
36+
1. Navigate to `sample-unity6/Assets/` and `sample-unity6/`
37+
2. Check if `Scenes`, `Scripts`, `Editor`, and `Tests` are folders (symlinks work) or small text files (symlinks didn't work)
3838

3939
If symlinks didn't work, run the setup script:
4040

sample-unity6/Assets/Resources/AltTester.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"name":"Horizontal","negativeButton":"left","positiveButton":"right","altPositiveButton":"d","altNegativeButton":"a","type":0,"axisDirection":0},{"name":"Vertical","negativeButton":"down","positiveButton":"up","altPositiveButton":"w","altNegativeButton":"s","type":0,"axisDirection":0},{"name":"Fire1","negativeButton":"","positiveButton":"left ctrl","altPositiveButton":"mouse 0","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Fire2","negativeButton":"","positiveButton":"left alt","altPositiveButton":"mouse 1","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Fire3","negativeButton":"","positiveButton":"left shift","altPositiveButton":"mouse 2","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Jump","negativeButton":"","positiveButton":"space","altPositiveButton":"","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Mouse X","negativeButton":"","positiveButton":"","altPositiveButton":"","altNegativeButton":"","type":1,"axisDirection":0},{"name":"Mouse Y","negativeButton":"","positiveButton":"","altPositiveButton":"","altNegativeButton":"","type":1,"axisDirection":1},{"name":"Mouse ScrollWheel","negativeButton":"","positiveButton":"","altPositiveButton":"","altNegativeButton":"","type":1,"axisDirection":2},{"name":"Horizontal","negativeButton":"","positiveButton":"","altPositiveButton":"","altNegativeButton":"","type":2,"axisDirection":0},{"name":"Vertical","negativeButton":"","positiveButton":"","altPositiveButton":"","altNegativeButton":"","type":2,"axisDirection":1},{"name":"Fire1","negativeButton":"","positiveButton":"joystick button 0","altPositiveButton":"","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Fire2","negativeButton":"","positiveButton":"joystick button 1","altPositiveButton":"","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Fire3","negativeButton":"","positiveButton":"joystick button 2","altPositiveButton":"","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Jump","negativeButton":"","positiveButton":"joystick button 3","altPositiveButton":"","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Submit","negativeButton":"","positiveButton":"return","altPositiveButton":"joystick button 0","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Submit","negativeButton":"","positiveButton":"enter","altPositiveButton":"space","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Cancel","negativeButton":"","positiveButton":"escape","altPositiveButton":"joystick button 1","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Enable Debug Button 1","negativeButton":"","positiveButton":"left ctrl","altPositiveButton":"joystick button 8","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Enable Debug Button 2","negativeButton":"","positiveButton":"backspace","altPositiveButton":"joystick button 9","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Debug Reset","negativeButton":"","positiveButton":"left alt","altPositiveButton":"joystick button 1","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Debug Next","negativeButton":"","positiveButton":"page down","altPositiveButton":"joystick button 5","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Debug Previous","negativeButton":"","positiveButton":"page up","altPositiveButton":"joystick button 4","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Debug Validate","negativeButton":"","positiveButton":"return","altPositiveButton":"joystick button 0","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Debug Persistent","negativeButton":"","positiveButton":"right shift","altPositiveButton":"joystick button 2","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Debug Multiplier","negativeButton":"","positiveButton":"left shift","altPositiveButton":"joystick button 3","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Debug Horizontal","negativeButton":"left","positiveButton":"right","altPositiveButton":"","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Debug Vertical","negativeButton":"down","positiveButton":"up","altPositiveButton":"","altNegativeButton":"","type":0,"axisDirection":0},{"name":"Debug Vertical","negativeButton":"down","positiveButton":"up","altPositiveButton":"","altNegativeButton":"","type":2,"axisDirection":6},{"name":"Debug Horizontal","negativeButton":"left","positiveButton":"right","altPositiveButton":"","altNegativeButton":"","type":2,"axisDirection":5}]

sample-unity6/Assets/Resources/AltTester/AltTesterInputAxisData.json.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: 2705215ac5b84b70bacc50632be6e391, type: 3}
13+
m_Name: TMP Settings
14+
m_EditorClassIdentifier:
15+
assetVersion:
16+
m_TextWrappingMode: 0
17+
m_enableKerning: 0
18+
m_ActiveFontFeatures: 00000000
19+
m_enableExtraPadding: 0
20+
m_enableTintAllSprites: 0
21+
m_enableParseEscapeCharacters: 0
22+
m_EnableRaycastTarget: 1
23+
m_GetFontFeaturesAtRuntime: 1
24+
m_missingGlyphCharacter: 0
25+
m_ClearDynamicDataOnBuild: 1
26+
m_warningsDisabled: 0
27+
m_defaultFontAsset: {fileID: 0}
28+
m_defaultFontAssetPath:
29+
m_defaultFontSize: 0
30+
m_defaultAutoSizeMinRatio: 0
31+
m_defaultAutoSizeMaxRatio: 0
32+
m_defaultTextMeshProTextContainerSize: {x: 0, y: 0}
33+
m_defaultTextMeshProUITextContainerSize: {x: 0, y: 0}
34+
m_autoSizeTextContainer: 0
35+
m_IsTextObjectScaleStatic: 0
36+
m_fallbackFontAssets: []
37+
m_matchMaterialPreset: 0
38+
m_HideSubTextObjects: 1
39+
m_defaultSpriteAsset: {fileID: 0}
40+
m_defaultSpriteAssetPath:
41+
m_enableEmojiSupport: 0
42+
m_MissingCharacterSpriteUnicode: 0
43+
m_EmojiFallbackTextAssets: []
44+
m_defaultColorGradientPresetsPath:
45+
m_defaultStyleSheet: {fileID: 0}
46+
m_StyleSheetsResourcePath:
47+
m_leadingCharacters: {fileID: 0}
48+
m_followingCharacters: {fileID: 0}
49+
m_UseModernHangulLineBreakingRules: 0

sample-unity6/Assets/Resources/TMP Settings.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sample-unity6/Assets/Settings/Build Profiles/macOS Profile.asset

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ MonoBehaviour:
3535
- line: '| useOnDemandResources: 0'
3636
- line: '| accelerometerFrequency: 60'
3737
- line: '| companyName: Immutable'
38-
- line: '| productName: SampleApp'
38+
- line: '| productName: Sample Unity 6 macOS'
3939
- line: '| defaultCursor: {instanceID: 0}'
4040
- line: '| cursorHotspot: {x: 0, y: 0}'
4141
- line: '| m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b:
@@ -794,7 +794,7 @@ MonoBehaviour:
794794
- line: '| webGLCloseOnQuit: 0'
795795
- line: '| webWasm2023: 0'
796796
- line: '| scriptingDefineSymbols:'
797-
- line: '| Standalone: VUPLEX_STANDALONE;VUPLEX_WEBVIEW'
797+
- line: '| Standalone: VUPLEX_STANDALONE'
798798
- line: '| additionalCompilerArguments: {}'
799799
- line: '| platformArchitecture: {}'
800800
- line: '| scriptingBackend:'

0 commit comments

Comments
 (0)