Skip to content

Commit 03e19a5

Browse files
authored
use only src files and re-add comments (#3176)
* use only src files and re-add comments * update codeql * remove what I added * add net 8 for codeql workflow
1 parent 4b63b6a commit 03e19a5

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
4545
# and modify them (or add more) to build your code if your project
4646
# uses a compiled language
47+
- name: Setup .NET 8.0.x
48+
uses: actions/setup-dotnet@v4
49+
with:
50+
dotnet-version: 8.x
51+
4752
- name: Setup .NET 9.0.x
4853
uses: actions/setup-dotnet@v4
4954
with:

.github/workflows/dotnetcore.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,27 @@ jobs:
5454
- name: Create code coverage report
5555
run: |
5656
dotnet tool install -g dotnet-reportgenerator-globaltool --version 5.4.1
57-
reportgenerator -reports:./**/coverage.cobertura.xml -targetdir:CodeCoverage -reporttypes:'MarkdownSummaryGithub;Cobertura'
57+
reportgenerator -reports:./**/coverage.cobertura.xml -targetdir:CodeCoverage -reporttypes:'MarkdownSummaryGithub;Cobertura' -filefilters:'+src/**/*.cs'
5858
5959
- name: Write coverage to job summary
6060
shell: bash
6161
run: |
6262
cat CodeCoverage/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
63-
# Temporarily disable commenting the coverage report
64-
# echo "COMMENT_CONTENT_ENV_VAR<<EOF" >> $GITHUB_ENV
65-
# echo $(cat CodeCoverage/SummaryGithub.md) >> $GITHUB_ENV
66-
# echo "EOF" >> $GITHUB_ENV
67-
68-
# - name: Comment coverage in PR
69-
# uses: actions/github-script@v7
70-
# id: comment
71-
# with:
72-
# script: |
73-
# github.rest.issues.createComment({
74-
# issue_number: context.issue.number,
75-
# owner: context.repo.owner,
76-
# repo: context.repo.repo,
77-
# body: process.env.COMMENT_CONTENT_ENV_VAR
78-
# })
63+
echo "COMMENT_CONTENT_ENV_VAR<<EOF" >> $GITHUB_ENV
64+
echo $(cat CodeCoverage/SummaryGithub.md) >> $GITHUB_ENV
65+
echo "EOF" >> $GITHUB_ENV
66+
67+
- name: Comment coverage in PR
68+
uses: actions/github-script@v7
69+
id: comment
70+
with:
71+
script: |
72+
github.rest.issues.createComment({
73+
issue_number: context.issue.number,
74+
owner: context.repo.owner,
75+
repo: context.repo.repo,
76+
body: process.env.COMMENT_CONTENT_ENV_VAR
77+
})
7978
8079
- name: Test with .NET 462
8180
run: dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net462 -v normal -p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName!~IntegrationTests)"

0 commit comments

Comments
 (0)