Migrate to GitHub Actions #5
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
# https://github.com/github/codeql | |
# https://github.com/github/codeql-action | |
name: CodeQL analysis | |
on: | |
push: | |
branches: [master, dev] | |
pull_request: | |
branches: [master, dev] | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
queries: security-and-quality | |
languages: csharp | |
- name: Install dependencies | |
working-directory: src | |
run: dotnet restore | |
- name: Build solution | |
working-directory: src | |
run: dotnet build --no-restore | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |