From f766c4d632d9e689b3947ddf32e596a2d24a2398 Mon Sep 17 00:00:00 2001 From: mhkarami97 Date: Tue, 19 Nov 2024 10:58:16 +0330 Subject: [PATCH] fix: code format on workflow --- .github/workflows/codeql.yml | 10 +++------- .github/workflows/dotnet.yml | 7 ++----- CacheManager.sln | 4 ++++ 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 23d7e72..931e155 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -44,7 +44,7 @@ jobs: matrix: include: - language: csharp - build-mode: none + build-mode: manual # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' # Use `c-cpp` to analyze code written in C, C++ or both # Use 'java-kotlin' to analyze code written in Java, Kotlin or both @@ -79,12 +79,8 @@ jobs: - if: matrix.build-mode == 'manual' shell: bash run: | - echo 'If you are using a "manual" build mode for one or more of the' \ - 'languages you are analyzing, replace this with the commands to build' \ - 'your code, for example:' - echo ' make bootstrap' - echo ' make release' - exit 1 + dotnet restore + dotnet build --configuration Release - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 2675cd9..1551605 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -38,11 +38,8 @@ jobs: with: dotnet-version: '8.0.x' - - name: Run linters - uses: wearerequired/lint-action@v2 - with: - dotnet_format: true - args: --workspace ./CacheManager.sln + - name: Run Format + run: dotnet format ./CacheManager.sln - name: Restore dependencies run: dotnet restore diff --git a/CacheManager.sln b/CacheManager.sln index ca83fdf..4bfb9b0 100644 --- a/CacheManager.sln +++ b/CacheManager.sln @@ -26,6 +26,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution", "Solution", "{FD CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md IssueManagementPolicies.md = IssueManagementPolicies.md .editorConfig = .editorConfig + .github\workflows\codeql.yml = .github\workflows\codeql.yml + .github\workflows\greetings.yml = .github\workflows\greetings.yml + .github\workflows\label.yml = .github\workflows\label.yml + .github\workflows\stale.yml = .github\workflows\stale.yml EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CacheManagerUnitTest", "CacheManagerUnitTest\CacheManagerUnitTest.csproj", "{11A397C0-ECD3-4734-B5F5-E80037190D6D}"