From 450866d1f5e92f239837be76396afe5919a4bf95 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Sun, 19 Nov 2023 01:29:14 +0200 Subject: [PATCH] Make formatting check a separate job --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7370044..896f64f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,26 @@ env: DOTNET_CLI_TELEMETRY_OPTOUT: true jobs: + format: + runs-on: windows-latest + permissions: + contents: read + + steps: + - name: Checkout + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # 4.1.0 + + - name: Install .NET + uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # 3.2.0 + with: + dotnet-version: 8.0.x + + - name: Verify formatting + run: > + dotnet build + -t:CSharpierFormat + --configuration Release + test: runs-on: windows-latest permissions: @@ -69,6 +89,7 @@ jobs: - name: Publish app run: > dotnet publish ${{ matrix.app }} + -p:CSharpier_Bypass=true --output ${{ matrix.app }}/bin/publish/ --configuration Release @@ -83,6 +104,7 @@ jobs: if: ${{ github.ref_type == 'tag' }} needs: + - format - test - pack