Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Jan 1, 2025
1 parent 4fa4303 commit cd13394
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,28 @@ jobs:
dotnet new tool-manifest
dotnet tool install JetBrains.ReSharper.GlobalTools
# Create a temporary solution and add all .cs files
- name: Create temporary solution
run: |
# Create a temporary directory for the solution
mkdir -p _temp
cd _temp
# Create a new solution
dotnet new sln -n TempSolution
# Create a temporary project and add all .cs files
dotnet new classlib -n TempProject
rm ./TempProject/Class1.cs
# Copy all .cs files from Assets to the temp project
find ../Assets -name "*.cs" -exec cp {} ./TempProject/ \;
# Add project to solution
dotnet sln add ./TempProject/TempProject.csproj
cd ..
- name: Run ReSharper CLI inspection
run: |
dotnet jb inspectcode . --output=inspect-results.xml --severity=WARNING \
--include="Assets/**/*.cs" \
--exclude="**/Library/**/*.cs;**/Temp/**/*.cs;**/obj/**/*.cs"
dotnet jb inspectcode ./_temp/TempSolution.sln --output=inspect-results.xml --severity=WARNING

0 comments on commit cd13394

Please sign in to comment.