Skip to content

Commit

Permalink
Make formatting check a separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Nov 18, 2023
1 parent 60c8703 commit a81162e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ 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

test:
runs-on: windows-latest
permissions:
Expand Down Expand Up @@ -69,6 +86,7 @@ jobs:
- name: Publish app
run: >
dotnet publish ${{ matrix.app }}
-p:CSharpier_Bypass=true
--output ${{ matrix.app }}/bin/publish/
--configuration Release
Expand Down

0 comments on commit a81162e

Please sign in to comment.