Skip to content

Commit

Permalink
fix codeQL analysis (#2124)
Browse files Browse the repository at this point in the history
* fix codeQL analysis

* run on PRs

* more updates

* use dotnet build

* revert back to test
  • Loading branch information
jennyf19 authored Mar 19, 2023
1 parent 5561182 commit 6f76fe5
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: "CodeQL"

on:
schedule:
- cron: '0 4 * * *'
push:
branches:
- "master"
pull_request:
branches:
- "master"
paths:
- ".github/workflows/codeql-analysis.yml"

jobs:
analyse:
Expand Down Expand Up @@ -40,9 +46,21 @@ jobs:
uses: actions/setup-dotnet@v2.1.0
with:
dotnet-version: 6.0.301

- name: Setup .NET 7.0.x
uses: actions/setup-dotnet@v2.1.0
with:
dotnet-version: 7.0.x

# Install workload
- name: Setup wasm-tools
run: dotnet workload install wasm-tools

- name: Build with .NET 6
run: dotnet build Microsoft.Identity.Web.sln -f net6.0 -p:FROM_GITHUB_ACTION=true --configuration Release
run: dotnet test Microsoft.Identity.Web.sln -f net6.0 -p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName!~IntegrationTests)"

- name: Build with .NET 7
run: dotnet test Microsoft.Identity.Web.sln -f net7.0 -p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName=IntegrationTests)"

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

0 comments on commit 6f76fe5

Please sign in to comment.