Skip to content

Commit

Permalink
Add slo to lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
XmasApple committed Sep 26, 2023
1 parent ab33761 commit 7825b65
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ on:

jobs:
autoformatter:
strategy:
matrix:
source-dir: ["./src/", "./slo/src/"]
include:
- source-dir: "./src/"
solutionFile: "YdbSdk.sln"
- source-dir: "./slo/src/"
solutionFile: "src.sln"
name: autoformat check
concurrency:
group: lint-autoformat-${{ github.ref }}
Expand All @@ -21,15 +29,18 @@ jobs:
with:
dotnet-version: '6.0.x'
- name: Restore
run: dotnet restore ./src/YdbSdk.sln
run: dotnet restore {{ matrix.source-dir }}{{ matrix.solutionFile }}
- name: Install ReSharper
run: dotnet tool install -g JetBrains.ReSharper.GlobalTools
- name: format all files with auto-formatter
run: bash ./.github/scripts/format-all-dotnet-code.sh ./src/ YdbSdk.sln "Custom Cleanup"
run: bash ./.github/scripts/format-all-dotnet-code.sh {{ matrix.source-dir }} {{ matrix.solutionFile }} "Custom Cleanup"}
- name: Check repository diff
run: bash ./.github/scripts/check-work-copy-equals-to-committed.sh "auto-format broken"

inspection:
strategy:
matrix:
soulutionPath: ["./src/YdbSdk.sln", "./slo/src/src.sln"]
runs-on: ubuntu-latest
name: Inspection
steps:
Expand All @@ -40,11 +51,11 @@ jobs:
with:
dotnet-version: '6.0.x'
- name: Restore
run: dotnet restore ./src/YdbSdk.sln
run: dotnet restore {{ matrix.soulutionPath }}
- name: Inspect code
uses: muno92/resharper_inspectcode@v1
with:
solutionPath: ./src/YdbSdk.sln
solutionPath: {{ matrix.solutionPath }}
version: 2023.2.1
include: |
**.cs
Expand Down

0 comments on commit 7825b65

Please sign in to comment.