Skip to content

Commit 4f266a2

Browse files
authored
ci: code format check (#1487)
1 parent fc188e2 commit 4f266a2

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ indent_style = space
1212
indent_size = 4
1313
dotnet_style_operator_placement_when_wrapping = beginning_of_line
1414
tab_width = 4
15-
end_of_line = crlf
1615
dotnet_style_coalesce_expression = true:suggestion
1716
dotnet_style_null_propagation = true:suggestion
1817
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion

.github/workflows/format-check.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Format Check
2+
on:
3+
push:
4+
branches: [ develop ]
5+
workflow_dispatch:
6+
workflow_call:
7+
8+
jobs:
9+
format-check:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: 9.0.x
20+
21+
- name: Run formatting check
22+
run: dotnet format --verify-no-changes

SourceGit.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
1818
.github\workflows\package.yml = .github\workflows\package.yml
1919
.github\workflows\release.yml = .github\workflows\release.yml
2020
.github\workflows\localization-check.yml = .github\workflows\localization-check.yml
21+
.github\workflows\format-check.yml = .github\workflows\format-check.yml
2122
EndProjectSection
2223
EndProject
2324
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{49A7C2D6-558C-4FAA-8F5D-EEE81497AED7}"

0 commit comments

Comments
 (0)