forked from IvanMurzak/Unity-MCP
-
Notifications
You must be signed in to change notification settings - Fork 0
139 lines (116 loc) · 4.18 KB
/
test_pull_request.yml
File metadata and controls
139 lines (116 loc) · 4.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# ┌──────────────────────────────────────────────────────────────────┐
# │ Author: Ivan Murzak (https://github.com/IvanMurzak) │
# │ Repository: GitHub (https://github.com/IvanMurzak/Unity-MCP) │
# │ Copyright (c) 2025 Ivan Murzak │
# │ Licensed under the Apache License, Version 2.0. │
# │ See the LICENSE file in the project root for more information. │
# └──────────────────────────────────────────────────────────────────┘
name: test-pull-request
on:
workflow_dispatch:
pull_request:
branches: [main, dev]
types: [opened, synchronize, reopened]
jobs:
save-event-file:
runs-on: ubuntu-latest
steps:
- name: Save event file for publish workflow
uses: actions/upload-artifact@v6
with:
name: Event File
path: ${{ github.event_path }}
test-cli:
uses: ./.github/workflows/test_cli.yml
build-and-zip-mcp-server:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: "9.0.x"
- name: Make build script executable
run: chmod +x ./Unity-MCP-Server/build-all.sh
- name: Build executables for all platforms
shell: bash {0}
run: cd Unity-MCP-Server && ./build-all.sh Release
# --- UNITY TESTS ---
# -------------------
# --- EDIT MODE ---
test-unity-2022-3-62f3-editmode:
needs: [build-and-zip-mcp-server]
uses: ./.github/workflows/test_unity_plugin.yml
with:
projectPath: "./Unity-Tests/2022.3.62f3"
unityVersion: "2022.3.62f3"
testMode: "editmode"
secrets: inherit
test-unity-2023-2-22f1-editmode:
needs: [build-and-zip-mcp-server]
uses: ./.github/workflows/test_unity_plugin.yml
with:
projectPath: "./Unity-Tests/2023.2.22f1"
unityVersion: "2023.2.22f1"
testMode: "editmode"
secrets: inherit
test-unity-6000-3-1f1-editmode:
needs: [build-and-zip-mcp-server]
uses: ./.github/workflows/test_unity_plugin.yml
with:
projectPath: "./Unity-Tests/6000.3.1f1"
unityVersion: "6000.3.1f1"
testMode: "editmode"
secrets: inherit
# --- PLAY MODE ---
# test-unity-2022-3-62f3-playmode:
# needs: [build-and-zip-mcp-server]
# uses: ./.github/workflows/test_unity_plugin.yml
# with:
# projectPath: './Unity-Tests/2022.3.62f3'
# unityVersion: '2022.3.62f3'
# testMode: 'playmode'
# secrets: inherit
# test-unity-2023-2-22f1-playmode:
# needs: [build-and-zip-mcp-server]
# uses: ./.github/workflows/test_unity_plugin.yml
# with:
# projectPath: './Unity-Tests/2023.2.22f1'
# unityVersion: '2023.2.22f1'
# testMode: 'playmode'
# secrets: inherit
# test-unity-6000-3-1f1-playmode:
# needs: [build-and-zip-mcp-server]
# uses: ./.github/workflows/test_unity_plugin.yml
# with:
# projectPath: './Unity-Tests/6000.3.1f1'
# unityVersion: '6000.3.1f1'
# testMode: 'playmode'
# secrets: inherit
# --- STANDALONE ---
test-unity-2022-3-62f3-standalone:
needs: [build-and-zip-mcp-server]
uses: ./.github/workflows/test_unity_plugin.yml
with:
projectPath: "./Unity-Tests/2022.3.62f3"
unityVersion: "2022.3.62f3"
testMode: "standalone"
secrets: inherit
test-unity-2023-2-22f1-standalone:
needs: [build-and-zip-mcp-server]
uses: ./.github/workflows/test_unity_plugin.yml
with:
projectPath: "./Unity-Tests/2023.2.22f1"
unityVersion: "2023.2.22f1"
testMode: "standalone"
secrets: inherit
test-unity-6000-3-1f1-standalone:
needs: [build-and-zip-mcp-server]
uses: ./.github/workflows/test_unity_plugin.yml
with:
projectPath: "./Unity-Tests/6000.3.1f1"
unityVersion: "6000.3.1f1"
testMode: "standalone"
secrets: inherit
# -------------------