mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-14 01:36:08 +03:00
Add automatic deployment
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
da2a88246c
commit
f6241702da
4 changed files with 89 additions and 36 deletions
34
.github/workflows/build-pr.yml
vendored
Normal file
34
.github/workflows/build-pr.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: "Inspect code with ReSharper"
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
merge_group:
|
||||
types: [ checks_requested ]
|
||||
|
||||
jobs:
|
||||
inspect-code:
|
||||
name: Inspect code
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
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.8.0
|
||||
with:
|
||||
solutionPath: ./Boyfriend.sln
|
||||
ignoreIssueType: InvertIf, ConvertIfStatementToSwitchStatement
|
||||
extensions: ReSharperPlugin.CognitiveComplexity
|
||||
solutionWideAnalysis: true
|
Loading…
Add table
Add a link
Reference in a new issue