Skip to content

Commit 4ffccc9

Browse files
committed
feat: add GitHub Action for manual Unity C# linting
1 parent 2ec59cb commit 4ffccc9

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Lint Unity Csharp for Dispatch
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
include-paths:
7+
description: 'Comma-separated regex patterns for files or directories to include. More info: https://www.gnu.org/software/grep/manual/'
8+
required: true
9+
type: string
10+
default: 'Assets/Tests/StyleTest/.*'
11+
exclude-paths:
12+
description: 'Exclude files or directories (regex, comma-separated)'
13+
required: false
14+
type: string
15+
default: ''
16+
17+
jobs:
18+
unity-cs-linter:
19+
uses: IShix-g/Unity-GitHubActions/.github/workflows/reusable-unity-cs-linter-dispatch.yaml@main
20+
with:
21+
base-branch: ${{ github.ref }}
22+
editorconfig-branch: ${{ github.event.repository.default_branch }}
23+
include-paths: ${{ inputs.include-paths }}
24+
exclude-paths: ${{ inputs.exclude-paths }}

.github/workflows/lint-unity-cs.yaml renamed to .github/workflows/lint-unity-cs-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint Unity Csharp
1+
name: Lint Unity Csharp for Pull Request
22

33
on:
44
pull_request:

0 commit comments

Comments
 (0)