Skip to content

Commit

Permalink
Scale back the formatting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Feb 3, 2025
1 parent 7ef9d94 commit dc52c30
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 116 deletions.
116 changes: 0 additions & 116 deletions .github/workflows/format.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,40 @@ env:
DOTNET_CLI_TELEMETRY_OPTOUT: true

jobs:
format:
runs-on: ubuntu-latest
timeout-minutes: 10

permissions:
contents: read

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Install .NET
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
with:
dotnet-version: 9.0.x

# Build the project separately to discern between build and format errors
- name: Build
run: >
dotnet build
--configuration Release
- name: Verify formatting
id: verify
run: >
dotnet build
-t:CSharpierFormat
--configuration Release
--no-restore
- name: Report issues
if: ${{ failure() && steps.verify.outcome == 'failure' }}
run: echo "::error title=Bad formatting::Formatting issues detected. Please run `dotnet build` locally to fix them."

test:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down Expand Up @@ -111,6 +145,7 @@ jobs:
if: ${{ github.ref_type == 'tag' }}

needs:
- format
- test
- pack

Expand Down

0 comments on commit dc52c30

Please sign in to comment.