Skip to content

chore(deps): update actions/setup-dotnet action to v4.1.0 (#577) #2961

chore(deps): update actions/setup-dotnet action to v4.1.0 (#577)

chore(deps): update actions/setup-dotnet action to v4.1.0 (#577) #2961

name: "CodeQL"
on:
push:
branches:
- main
paths-ignore:
- "DisCatSharp.Docs/**"
- "DisCatSharp.Archive/**"
- "DisCatSharp.Tools/**"
- "DisCatSharp.Logos/**"
- "DisCatSharp.Attributes/**"
- "*.md"
- "*.json"
pull_request:
branches:
- main
schedule:
- cron: "39 18 * * 3"
merge_group:
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["csharp"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Set up dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.100-preview.7.24407.12
8.x
7.x
- name: Restore dependencies
run: dotnet restore --no-cache -f -v minimal DisCatSharp.sln
- name: Build
run: dotnet build -c Release -v minimal --no-restore --no-self-contained DisCatSharp.sln
- name: Restore Tools Packages
run: dotnet restore --no-cache -f -v minimal DisCatSharp.Tools/DisCatSharp.Tools.sln
- name: Build tools
run: dotnet build -c Release -v minimal --no-restore DisCatSharp.Tools/DisCatSharp.Tools.sln
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3