Skip to content

Commit

Permalink
Merge pull request #68 from hrntsm/feature/run-dotnet-format-check-us…
Browse files Browse the repository at this point in the history
…ing-ci

Add dotnet format ci settings
  • Loading branch information
hrntsm committed Feb 13, 2021
2 parents f5e70e4 + 82de505 commit c302237
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-format": {
"version": "5.0.211103",
"commands": [
"dotnet-format"
]
}
}
}
15 changes: 15 additions & 0 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Check Code Format
on: pull_request

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
- name: Restore Tool
run: dotnet tool restore
- name: Lint
run: dotnet format --check
1 change: 0 additions & 1 deletion .github/workflows/deploy-document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

jobs:
deploy:

runs-on: ubuntu-18.04
defaults:
run:
Expand Down
5 changes: 5 additions & 0 deletions HoaryFox.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HoaryFox", "HoaryFox\HoaryF
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "karambaConnect", "KarambaConnect\karambaConnect.csproj", "{CD5D3228-2B3E-4112-9B42-C82615673DFE}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A6D8895B-AD85-4160-A082-039DB8766CC9}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down

0 comments on commit c302237

Please sign in to comment.