Skip to content

Commit

Permalink
Create csharp-linter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Jul 21, 2023
1 parent b78d284 commit f1b82d0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/csharp-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CSharp Linter

on:
push:
branches: MergeTools

env:
DOTNET_VERSION: '7.0.x'

jobs:
linter-check:
runs-on: ubuntu-latest
steps:

- name: Checkout repo
uses: actions/checkout@v3
with:
repository: guibranco/BancosBrasileiros
ref: MergeTool

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Dotnet restore
run: dotnet tool restore

- name: Csharpier format check
run: |
dotnet csharpier . --check
echo "run 'dotnet build' to fix the formatting of the code automatically"

0 comments on commit f1b82d0

Please sign in to comment.