Skip to content

Commit

Permalink
Attempt to fix codeql workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Nov 5, 2024
1 parent 6e63baf commit fb16001
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ jobs:
strategy:
fail-fast: false
matrix:
solution:
- ./Pkmds.sln
include:
- language: csharp
build-mode: autobuild
build-mode: manual
- language: javascript-typescript
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
Expand All @@ -59,6 +61,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# sets up .NET SDK
- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
global-json-file: ./global.json

- name: Install WASM workload
run: dotnet workload install wasm-tools

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand All @@ -78,15 +89,13 @@ jobs:
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- 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
- name: Dotnet Restore
if: matrix.build-mode == 'manual' && matrix.language == 'csharp'
run: dotnet restore ${{ matrix.solution }}

- name: Dotnet Build
if: matrix.build-mode == 'manual' && matrix.language == 'csharp'
run: dotnet build ${{ matrix.solution }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: "8.x"
global-json-file: ./global.json

- name: Install WASM workload
run: dotnet workload install wasm-tools
Expand Down

0 comments on commit fb16001

Please sign in to comment.