From 18c97a329080d41685be14fc7c5d90b4d6103384 Mon Sep 17 00:00:00 2001 From: Omar Muscatello <115794104+omar-muscatello-zupit@users.noreply.github.com> Date: Sat, 18 Nov 2023 12:11:40 +0100 Subject: [PATCH] feat: lint before build .net --- .github/workflows/dotnet-workflow-common.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dotnet-workflow-common.yml b/.github/workflows/dotnet-workflow-common.yml index d72772eb..dbb7a48a 100644 --- a/.github/workflows/dotnet-workflow-common.yml +++ b/.github/workflows/dotnet-workflow-common.yml @@ -32,17 +32,17 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Build - uses: zupit-it/pipeline-templates/.github/actions/dotnet/build@v1.8.1 + - name: Check code formatting + uses: zupit-it/pipeline-templates/.github/actions/dotnet/format@dotnet-formatter-version-choice with: WORKING_DIRECTORY: ${{ inputs.WORKING_DIRECTORY }} - BUILD_CONFIG: "Debug" + CSHARPIER_VERSION: ${{ inputs.CSHARPIER_VERSION }} - - name: Check code formatting - uses: zupit-it/pipeline-templates/.github/actions/dotnet/format@v1.8.1 + - name: Build + uses: zupit-it/pipeline-templates/.github/actions/dotnet/build@v1.8.1 with: WORKING_DIRECTORY: ${{ inputs.WORKING_DIRECTORY }} - CSHARPIER_VERSION: ${{ inputs.CSHARPIER_VERSION }} + BUILD_CONFIG: "Debug" - name: Run tests uses: zupit-it/pipeline-templates/.github/actions/dotnet/test@v1.8.1