Skip to content

Commit

Permalink
add .gitguardian.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Bert <[email protected]>
  • Loading branch information
Bertk committed Oct 13, 2023
1 parent 4ff1a48 commit 23c10f3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .gitguardian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: 2

secret:
ignored-paths:
- 'CycloneDX/Program.cs'
19 changes: 10 additions & 9 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.0
- name: Setup dotnet
uses: actions/setup-dotnet@v3.0.3
uses: actions/setup-dotnet@v3.2.0
with:
dotnet-version: |
7.x
Expand Down Expand Up @@ -47,25 +47,26 @@ jobs:
timeout-minutes: 30

steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4
- name: Setup dotnet 7
uses: actions/setup-dotnet@v3.0.3
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.x'
- name: Setup dotnet 6
uses: actions/setup-dotnet@v3.0.3
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.x'
- name: Tests
run: dotnet test --framework ${{ matrix.framework }} --collect:"XPlat Code Coverage"
run: dotnet test --framework ${{ matrix.framework }} --collect:"XPlat Code Coverage;Format=cobertura" --results-directory "TestResults"
# see https://github.com/danielpalme/ReportGenerator/blob/main/.github/workflows/ci.yml
- name: ReportGenerator
uses: danielpalme/ReportGenerator-GitHub-Action@5.1.24
uses: danielpalme/ReportGenerator-GitHub-Action@5
with:
reports: 'coverage.cobertura.xml'
reports: 'TestResults/**/coverage.cobertura.xml'
targetdir: 'coveragereport'
reporttypes: 'HtmlInline;Cobertura'
- name: Upload coverage report artifact
uses: actions/upload-artifact@v2.2.3
uses: actions/upload-artifact@v3
with:
name: CoverageReport
path: coveragereport
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ SBOM/
.dotnet/
.local/
.nuget/
.opencode-server/
.opencode-server/
TestResults/

0 comments on commit 23c10f3

Please sign in to comment.