CI: Adding coding style workflow

This commit is contained in:
Zoe Roux 2021-09-13 21:20:45 +02:00
parent 0c6d527f3c
commit e7b93393f4

15
.github/workflows/coding-style.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: CodingStyle
on: [pull_request, workflow_dispatch]
jobs:
build:
name: "Coding style check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Build the app
run: dotnet build -p:CheckCodingStyle=true -p:TreatWarningsAsErrors=true