-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,24 +27,11 @@ jobs: | |
with: | ||
dotnet-version: '3.1.x' | ||
|
||
- name: Dotnet format annotations | ||
uses: xt0rted/dotnet-format-problem-matcher@v1 | ||
|
||
- name: Setup dotnet-format tool | ||
run: dotnet tool install -g dotnet-format | ||
|
||
- name: Run dotnet format | ||
run: dotnet format code/tttreborn-ci.csproj --report ${{ github.workspace }}/report.json --check | ||
|
||
# Upload the analysis results file | ||
- name: Upload analysis results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: report.json | ||
path: ${{ github.workspace }}/report.json | ||
if: ${{ always() }} | ||
|
||
- name: Annotations from report.json | ||
uses: yuzutech/[email protected] | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
title: annotations | ||
input: ${{ github.workspace }}/report.json | ||
if: ${{ always() }} | ||
run: dotnet format code/tttreborn-ci.csproj --dry-run |