From 0c0994d990c962198b31e217cdaa5a4bce5b79b4 Mon Sep 17 00:00:00 2001 From: Enis Mulic Date: Thu, 2 Nov 2023 15:58:15 +0100 Subject: [PATCH] ci: add linting to workflow --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d962ce..09c740f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,14 +15,19 @@ jobs: with: dotnet-version: "7.0.x" - - name: Restore dependencies - run: dotnet restore + - name: Lint + run: dotnet format --verify-no-changes --verbosity diagnostic - name: Build run: dotnet build --configuration Release --no-restore - name: Test - run: dotnet test --no-restore --verbosity normal --logger trx --results-directory ./test-results/ /p:CI=true tests/Application.UnitTests + run: | + dotnet test --no-restore \ + --verbosity normal \ + --logger trx \ + --results-directory ./test-results/ /p:CI=true \ + tests/Application.UnitTests - name: Test Reporter uses: dorny/test-reporter@v1