Slightly improved perf of source gen and analyzers #361
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: [ master, codeql ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ master ] | |
schedule: | |
- cron: '32 4 * * 3' | |
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: install .NET Core 7/8/9 SDKs | |
uses: actions/setup-dotnet@v2 | |
with: | |
include-prerelease: false | |
dotnet-version: | | |
7.0.x | |
8.0.x | |
9.0.x | |
- name: checkout repository | |
uses: actions/checkout@v3 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
- name: dotnet restore | |
run: dotnet restore | |
- name: build | |
run: dotnet build --configuration Release --no-restore | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |