Skip to content

Commit

Permalink
Add CSharpier to CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad committed Nov 2, 2024
1 parent c19d029 commit 324b834
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
"isRoot": true,
"tools": {
"dotnet-format": {
"version": "7.4.441804",
"version": "8.3.546805",
"commands": [
"dotnet-format"
]
],
"rollForward": false
},
"csharpier": {
"version": "0.29.2",
"commands": [
"dotnet-csharpier"
],
"rollForward": false
}
}
}
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ insert_final_newline = true

[*.cs]
indent_size = 4
max_line_length = 120
dotnet_sort_system_directives_first = true
csharp_style_namespace_declarations = file_scoped:warning

Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: ci
on:
push:
branches:
- dev
- main
- '*'
tags:
- v*
paths-ignore:
Expand Down Expand Up @@ -42,7 +41,7 @@ jobs:
- name: Install tools
run: |
dotnet tool restore --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json
dotnet tool restore --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json
- name: Clean
run: |
Expand All @@ -53,7 +52,12 @@ jobs:
run: dotnet restore

- name: Format
run: dotnet format --verify-no-changes
run: |
PATH="$PATH:~/.dotnet/tools"
ls ~/.dotnet/tools/
dotnet-format style --verify-no-changes
dotnet-format analyzers --verify-no-changes
dotnet-csharpier . --check
- name: Build
run: dotnet build --configuration Release --no-restore
Expand Down

0 comments on commit 324b834

Please sign in to comment.