Skip to content

Add workflows - #2

Merged
yoper12 merged 7 commits into
mainfrom
workflows
Jan 31, 2026
Merged

Add workflows#2
yoper12 merged 7 commits into
mainfrom
workflows

Conversation

@yoper12

@yoper12 yoper12 commented Jan 30, 2026

Copy link
Copy Markdown
Member

This pull request introduces a comprehensive overhaul of the project's GitHub Actions workflows for build, test, formatting, and release automation, alongside minor code style improvements in several C# editor scripts. The main focus is on modularizing and enhancing CI/CD processes, including platform-specific builds, automated code formatting, and Discord notifications for releases and nightly builds.

GitHub Actions Workflow Overhaul

  • Added a modular build workflow (.github/workflows/build.yml) that supports building for multiple target platforms, caching Unity libraries, and publishing artifacts or releases with Discord notifications.
  • Introduced a main workflow (.github/workflows/main.yml) to coordinate builds (and, in the future, tests) for different platforms, with logic to skip duplicate runs and trigger release notifications.
  • Added a test workflow (.github/workflows/test.yml) for running Unity tests in various modes, caching results, and uploading test and coverage artifacts.
  • Created a workflow for sending Discord notifications on new releases, supporting both direct release events and workflow calls.
  • Added a formatting workflow (.github/workflows/format.yml) that uses CSharpier to auto-format C# code on every push, committing changes if any formatting issues are fixed.

Code Style and Readability Improvements in Editor Scripts

  • Reformatted code in Assets/Editor/IPPropertyDrawer.cs and Assets/Editor/MaskPropertyDrawer.cs for better readability, mainly by expanding multi-statement lines and improving validation logic formatting. [1] [2] [3] [4] [5] [6] [7] [8]
  • Improved code style in Assets/FolderIcons/Editor/CustomFolder.cs and Assets/FolderIcons/Editor/FolderObject.cs by expanding conditional statements and refactoring asset loading and logging code for clarity. [1] [2] [3] [4] [5] [6]

Copilot AI review requested due to automatic review settings January 30, 2026 21:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds GitHub Actions workflows for CI/CD automation and applies consistent code formatting to C# files throughout the project using CSharpier.

Changes:

  • Added five GitHub Actions workflows for building, testing, formatting, and releasing the Unity project
  • Reformatted all C# files to follow consistent styling conventions (SerializeField attributes on separate lines, improved line breaking for method calls and array initialization)
  • Reorganized imports to follow standard conventions (System imports before Unity imports)

Reviewed changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
.github/workflows/main.yml Main workflow dispatcher for builds, tests, and releases
.github/workflows/build.yml Workflow for building Unity project on different platforms
.github/workflows/test.yml Workflow for running Unity tests
.github/workflows/format.yml Workflow for automatically formatting code with CSharpier
.github/workflows/send-release-webhook.yml Workflow for sending Discord notifications on releases
Assets/Scripts/Tab/*.cs Formatted Tab management scripts with consistent SerializeField styling
Assets/Scripts/*.cs Formatted core networking scripts with improved readability
Assets/Editor/*.cs Formatted Unity Editor scripts with consistent styling
Assets/FolderIcons/Editor/*.cs Formatted folder icon editor scripts with better line breaking

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/send-release-webhook.yml Outdated
Comment thread .github/workflows/main.yml
Comment thread .github/workflows/main.yml
Comment thread .github/workflows/format.yml
Comment on lines +69 to 75
foreach (string folderName in folderIconSO.names)
{
if (folderName != null)
if (folderName != null)
{
dictionary.TryAdd(folderName, texture);
}
}

Copilot AI Jan 30, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This foreach loop implicitly filters its target sequence - consider filtering the sequence explicitly using '.Where(...)'.

Copilot uses AI. Check for mistakes.
Comment thread Assets/Scripts/Tab/TabIPInput.cs
Comment thread Assets/Scripts/Tab/TabIPInput.cs
Comment thread Assets/Scripts/Tab/TabMaskInput.cs
Comment thread Assets/Scripts/Tab/TabMaskInput.cs
Comment thread Assets/Scripts/Tab/TabController.cs
@yoper12 yoper12 self-assigned this Jan 30, 2026
@yoper12 yoper12 added the enhancement New feature or request label Jan 30, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: YOPER12 <69840031+yoper12@users.noreply.github.com>
@yoper12
yoper12 merged commit 3a945b9 into main Jan 31, 2026
3 checks passed
@yoper12
yoper12 deleted the workflows branch January 31, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants