1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-04 13:06:29 +03:00

Add ReSharper code inspection (#10)

And cancel workflows in progress to avoid having multiple of the same
workflow running
This commit is contained in:
l1ttleO 2022-12-09 16:47:11 +05:00 committed by GitHub
parent 938f918445
commit 28b0668628
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 80 additions and 37 deletions

36
.github/workflows/resharper.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: "ReSharper"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
inspect-code:
name: Inspect code
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Restore dependencies and tools
run: dotnet restore
- name: ReSharper CLI InspectCode
uses: muno92/resharper_inspectcode@1.6.0
with:
solutionPath: ./Boyfriend-CSharp.sln
ignoreIssueType: InvertIf
solutionWideAnalysis: true