mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-11 10:26:57 +02:00
Improve the format
workflow job
This commit is contained in:
parent
7663f8ed31
commit
75ff5c2f7e
1 changed files with 13 additions and 0 deletions
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
|
@ -33,11 +33,24 @@ jobs:
|
||||||
with:
|
with:
|
||||||
dotnet-version: 9.0.x
|
dotnet-version: 9.0.x
|
||||||
|
|
||||||
|
# Build the project separately to discern between build and format errors
|
||||||
|
- name: Build
|
||||||
|
run: >
|
||||||
|
dotnet build
|
||||||
|
-p:CSharpier_Bypass=true
|
||||||
|
--configuration Release
|
||||||
|
|
||||||
- name: Verify formatting
|
- name: Verify formatting
|
||||||
|
id: verify
|
||||||
run: >
|
run: >
|
||||||
dotnet build
|
dotnet build
|
||||||
-t:CSharpierFormat
|
-t:CSharpierFormat
|
||||||
--configuration Release
|
--configuration Release
|
||||||
|
--no-restore
|
||||||
|
|
||||||
|
- name: Report issues
|
||||||
|
if: ${{ failure() && steps.verify.outcome == 'failure' }}
|
||||||
|
run: echo "::error title=Bad formatting::Formatting issues detected. Please build the solution locally to fix them."
|
||||||
|
|
||||||
test:
|
test:
|
||||||
# Tests need access to secrets, so we can't run them against PRs because of limited trust
|
# Tests need access to secrets, so we can't run them against PRs because of limited trust
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue