Skip to content

Commit

Permalink
Merge pull request #26 from Barsonax/feature/codeQuality
Browse files Browse the repository at this point in the history
Add check to see if code is following the correct style
  • Loading branch information
Barsonax committed Dec 10, 2023
2 parents 883e481 + 7fa66d6 commit 085fd51
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.svg filter=lfs diff=lfs merge=lfs -text
* text eol=crlf
12 changes: 12 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Verify code formatting
run: dotnet format --no-restore --verify-no-changes
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
Expand Down Expand Up @@ -41,6 +43,16 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore -warnaserror -warnnotaserror:CS0618,CS0612
VerifyStyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Verify code formatting
run: dotnet format --no-restore --verify-no-changes -v diag
MigrationsMsSqlEntityFrameworkCore:
uses: ./.github/workflows/build_and_test.yml
with:
Expand Down

0 comments on commit 085fd51

Please sign in to comment.