Skip to content

Commit

Permalink
Create codeql-analysis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pomianowski authored Mar 13, 2024
1 parent eefe270 commit bf07aaa
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
branches: [ development ]

jobs:
analyze:
name: Analyze
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- uses: microsoft/setup-msbuild@v1.3
with:
msbuild-architecture: x64

- name: Setup .NET Core SDK 8.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build src\Wpf.Ui.Gallery\Wpf.Ui.Gallery.csproj --configuration Release --no-restore

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: "csharp"

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

0 comments on commit bf07aaa

Please sign in to comment.