-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccceced
commit 052ff45
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
# lint project based on editorconfig rules | ||
dotnet husky run --group pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
# build project and run unit tests | ||
dotnet husky run --group pre-push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"$schema": "https://alirezanet.github.io/Husky.Net/schema.json", | ||
"tasks": [ | ||
{ | ||
"name": "dotnet-format", | ||
"group": "pre-commit", | ||
"command": "dotnet", | ||
"args": [ | ||
"format", | ||
"--include", | ||
"${staged}", | ||
"--verbosity", | ||
"diagnostic" | ||
], | ||
"include": [ | ||
"**/*.cs", | ||
"**/*.ps1" | ||
] | ||
}, | ||
{ | ||
"name": "dotnet-build", | ||
"group": "pre-push", | ||
"command": "dotnet", | ||
"args": [ | ||
"build", | ||
"/warnaserror" | ||
] | ||
}, | ||
{ | ||
"name": "dotnet-test", | ||
"group": "pre-push", | ||
"command": "dotnet", | ||
"args": [ | ||
"test", | ||
"--nologo" | ||
] | ||
} | ||
] | ||
} |