Bump Microsoft.Extensions.Logging.Console and Microsoft.Extensions.Logging #400
Workflow file for this run
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
name: inspect | |
on: [pull_request] | |
jobs: | |
inspect: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- uses: actions/checkout@v2 | |
- name: install resharper | |
run: dotnet tool install -g JetBrains.ReSharper.GlobalTools | |
- name: build solution before analysis | |
run: dotnet build | |
- name: determine changed files | |
uses: lots0logs/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: run resharper | |
run: | | |
changed_files=$(jq --raw-output 'join(";")' "${HOME}/files.json") | |
echo "Changed files: $changed_files" | |
jb inspectcode --severity=WARNING --format=Json --output=_rs_inspections --include="$changed_files" tpp-core.sln || echo "ReSharper failed, likely because the filter resulted in no files being analyzed" | |
- name: process resharper inspections | |
run: | | |
if [ -d "./_rs_inspections" ]; then | |
for filename in ./_rs_inspections/*.json; do | |
jq --raw-output '.problems[] | "::\(.problem_class.severity) file=\(.file | gsub("\\\\";"/") | sub("\\$PROJECT_DIR\\$/";"")),line=\(.line),col=\(.offset)::\(.description)"' "$filename" | |
done | |
fi | |
# - name: check code formatting | |
# run: | | |
# dotnet format --verify-no-changes --report=_format_report.json || python .github/workflows/process_format_report.py |