-
-
Notifications
You must be signed in to change notification settings - Fork 12
67 lines (55 loc) · 2.19 KB
/
editorconfig.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Code Inspections
concurrency: build_checks_deploy
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
# from https://github.com/marketplace/actions/dotnet-format
steps:
- name: Get branch info # todo: is this needed?
id: comment-branch
uses: xt0rted/pull-request-comment-branch@v1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout repo
uses: actions/checkout@v2
with:
ref: ${{ steps.comment-branch.outputs.ref }}
persist-credentials: false
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore
run: dotnet restore
working-directory: ./src
- name: Inspect code
uses: muno92/[email protected]
with:
solutionPath: ./src/Consolonia.sln
exclude: "**Consolonia.GuiCS/**.*;**Consolonia.Gallery/**.*;**Example/**.*"
version: '2024.2.6'
minimumSeverity: 'warning'
- name: install-resharper
run: |
dotnet tool install -g JetBrains.ReSharper.GlobalTools
continue-on-error: true # todo: need to check whether has changes
- name: resharper-cleanup
run: |
jb cleanupcode Consolonia.sln --exclude="**Consolonia.GuiCS/**.*;**Consolonia.Gallery/**.*;**Example/**.*"
working-directory: ./src
- name: Commit files
continue-on-error: true # todo: need to check whether has changes
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -a -m 'Automated JetBrains cleanup
Co-authored-by: ${{ github.event.comment.user.login }} <${{ github.event.comment.user.id }}+${{ github.event.comment.user.login }}@users.noreply.github.com>'
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ steps.comment-branch.outputs.ref }}
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}