Skip to content

Commit

Permalink
fix: code format on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MHKarami97 committed Nov 19, 2024
1 parent 1503046 commit f766c4d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions CacheManager.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit f766c4d

Please sign in to comment.