Make formatting check a separate job

pull/1160/head
Tyrrrz 12 months ago
parent 60c8703e78
commit 450866d1f5

@ -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

Loading…
Cancel
Save