Skip to content

Commit 372dda4

Browse files
formatting yamato job and dotnet format project (#464)
1 parent 97c5e2b commit 372dda4

File tree

7 files changed

+650
-124
lines changed

7 files changed

+650
-124
lines changed

.yamato/project-standards.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% metadata_file .yamato/project.metafile %}
2+
---
3+
standards_{{ projects.first.name }}:
4+
name: Standards Check {{ projects.first.name }}
5+
agent:
6+
type: Unity::VM
7+
image: desktop/logging-testing-linux:v0.1.2-926285
8+
flavor: b1.medium
9+
commands:
10+
- dotnet --version
11+
- dotnet format --version
12+
- pip install unity-downloader-cli --upgrade --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
13+
- unity-downloader-cli -u {{ projects.first.test_editors.first }} -c editor --wait --fast
14+
- .Editor/Unity -batchmode -nographics -logFile - -executeMethod Packages.Rider.Editor.RiderScriptEditor.SyncSolution -projectPath {{ projects.first.path }} -quit
15+
- dotnet run --project dotnet-tools/netcode.standards -- --project={{ projects.first.path }} --check

.yamato/project.metafile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
validation_editor: 2020.3
2+
3+
# Platforms that will be tested. The first entry in this array will also
4+
# be used for validation
5+
test_platforms:
6+
- name: win
7+
type: Unity::VM
8+
image: package-ci/win10:stable
9+
flavor: b1.large
10+
editorpath: .Editor\Unity.exe
11+
utr: .\utr.bat
12+
- name: mac
13+
type: Unity::VM::osx
14+
image: package-ci/mac:stable
15+
flavor: b1.large
16+
editorpath: .Editor/Unity.app/Contents/MacOS/Unity
17+
utr: ./utr
18+
- name: ubuntu
19+
type: Unity::VM
20+
image: package-ci/ubuntu:stable
21+
flavor: b1.large
22+
editorpath: .Editor/Unity
23+
utr: ./utr
24+
25+
# Projects within the repository that will be tested. Name will be used
26+
# for job ids, so it should not contain spaces/non-supported characters
27+
projects:
28+
- name: com.unity.multiplayer.samples.coop
29+
path: .
30+
validate: true
31+
# Packages within a project that will be tested
32+
packages:
33+
- name: com.unity.multiplayer.samples.coop
34+
path: Packages/com.unity.multiplayer.samples.coop
35+
test_editors:
36+
- 2021.1
37+
- 2021.2
38+
- 2020.3
39+
- trunk

.yamato/upm-ci.yml

Lines changed: 0 additions & 124 deletions
This file was deleted.

0 commit comments

Comments
 (0)