Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/dev' into dev-view-…
Browse files Browse the repository at this point in the history
…schedule-support
  • Loading branch information
SergeyNefyodov committed Apr 26, 2024
2 parents c1608b8 + b66305b commit 44ae574
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/Qodana.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
name: Code quality

on:
workflow_dispatch:
pull_request:
pull_request_target:
push:
branches:
- master

jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@main
uses: JetBrains/qodana-action@v2023.3
with:
pr-mode: false
github-token: ${{ secrets.GITHUB_TOKEN }}
args: --ide,QDNET
pr-mode: ${{ github.event_name == 'pull_request_target' }}
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
6 changes: 3 additions & 3 deletions build/Build.Clean.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ sealed partial class Build
.OnlyWhenStatic(() => IsLocalBuild)
.Executes(() =>
{
CleanDirectory(ArtifactsDirectory);
foreach (var project in Solution.AllProjects.Where(project => project != Solution.Build))
{
CleanDirectory(project.Directory / "bin");
Expand All @@ -16,9 +17,8 @@ sealed partial class Build
foreach (var configuration in GlobBuildConfigurations())
DotNetClean(settings => settings
.SetConfiguration(configuration)
.SetVerbosity(DotNetVerbosity.minimal));

CleanDirectory(ArtifactsDirectory);
.SetVerbosity(DotNetVerbosity.minimal)
.EnableNoLogo());
});

static void CleanDirectory(AbsolutePath path)
Expand Down
2 changes: 1 addition & 1 deletion qodana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"
linter: jetbrains/qodana-dotnet:latest
ide: QDNET
failThreshold: 0

profile:
Expand Down

0 comments on commit 44ae574

Please sign in to comment.