chore: Add .NET 9 targeting #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
schedule: | |
- cron: '51 14 * * 6' | |
jobs: | |
analyze: | |
name: analyze | |
runs-on: 'ubuntu-latest' | |
permissions: | |
security-events: write | |
packages: read | |
actions: read | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- language: csharp | |
- language: javascript-typescript | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- if: matrix.language == 'csharp' | |
name: Install .NET SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "9.x" | |
dotnet-quality: "ga" | |
- if: matrix.language == 'csharp' | |
name: Build .NET solution | |
run: | | |
dotnet build server/ChartBackend.sln \ | |
--configuration Release \ | |
--property:ContinuousIntegrationBuild=true \ | |
-warnAsError | |
- if: matrix.language == 'javascript-typescript' | |
name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
cache: "npm" | |
cache-dependency-path: client/package-lock.json | |
- if: matrix.language == 'javascript-typescript' | |
name: Build website | |
working-directory: ./client | |
run: | | |
run: npm install | |
run: npm run build.prod | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:${{matrix.language}}" |