Skip to content

Commit ecb9bce

Browse files
committed
Run the lighter dotnet standards check first, before running the heavier unity standards check
1 parent 59463bf commit ecb9bce

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.yamato/project-standards.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@
88
# Project structure validation
99
# Coding convention adherence
1010
# Solution file synchronization
11-
11+
1212
# CONFIGURATION STRUCTURE--------------------------------------------------------------
1313
# Jobs configurations are generated using nested loops through:
1414
# 1. For all NGO projects (testproject, testproject-tools-interation, minimalproject)
1515
# 2. For default platform only (Ubuntu) since standards would not vary between platforms (no need for checks on more platforms)
1616
# 3. For default editor version (trunk) since standards would not vary between editors (no need for checks on more editors)
17-
17+
1818
# TECHNICAL CONSTRAINTS---------------------------------------------------------------
1919
# Requires .NET SDK installed (should be preinstalled on the image so we just check for version)
2020
# Needs Unity Editor for solution synchronization
2121
# Uses custom standards validation tool (netcode.standards)
2222
# Generates no test artifacts (pass/fail only). Eventual failure will be visible in the logs
23-
23+
2424
# QUALITY THOUGHTS--------------------------------------------------------------------
2525
# While testproject validation would be sufficient, since it validates both project and package (where package is our main concern) jobs for all projects are being generated to ensure that we conform to quality standards in all projects.
2626
# TODO: consider modifying the approach and adding checks for minimal supported editor. In case of NGOv1.X it has proven to yield different results (But since NGOv2.X support starts from 6000.0 editor it's not that time pressuring)
2727
# To see where this job is included (in trigger job definitions) look into _triggers.yml file
28-
28+
2929
#------------------------------------------------------------------------------------
3030

3131
{% for project in projects.all -%}
@@ -44,10 +44,10 @@ standards_{{ platform.name }}_{{ project.name }}_{{ editor }}:
4444
# .NET environment setup. Ensures required .NET SDK and formatting tools are available
4545
- dotnet --version
4646
- dotnet format --version
47-
47+
- dotnet run --project=dotnet-tools/netcode.standards -- --project={{ project.path }} --check # Runs standards check
48+
4849
- unity-downloader-cli --fast --wait -u {{ editor }} -c editor {% if platform.name == "mac" %} --arch arm64 {% endif %} # For macOS we use ARM64 models. Downloads basic editor
4950
- .Editor/Unity -batchmode -nographics -logFile - -executeMethod Packages.Rider.Editor.RiderScriptEditor.SyncSolution -projectPath {{ project.path }} -quit # This command is used to invoke Unity in a "headless" mode. It's used to sync the project
50-
- dotnet run --project=dotnet-tools/netcode.standards -- --project={{ project.path }} --check # Runs standards check
5151
{% endfor -%}
5252
{% endfor -%}
53-
{% endfor -%}
53+
{% endfor -%}

0 commit comments

Comments
 (0)