Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
exclude_paths:
# Ignore the test projects entirely
- EstateManagementUI.BlazorServer.Tests/**
- EstateManagementUI.IntegrationTests/**

# Common build / IDE artifacts
- bin/**
- obj/**
- .vs/**
- .vscode/**
- .idea/**
- packages/**

# Node / frontend artifacts
- node_modules/**
- wwwroot/lib/**

# Generated code and designer files
- "**/*.g.cs"
- "**/*.g.i.cs"
- "**/*.designer.cs"
- "**/*.Generated.cs"
- "**/Generated/**"

# Coverage and test results
- coverage/**
- coverage.*
- coverage.xml
- lcov.info
- TestResults/**

# Archives / legacy folders
- Archive/**
- "**/Archive/**"

# Other artifacts
- "*.user"
- "*.suo"
- "*.db"
- "*.sqlite"
- "*StubTestData.cs"
26 changes: 26 additions & 0 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Codacy Issue Sync

on:
push:
branches: [main, master]
workflow_dispatch:

permissions:
contents: read
issues: write

jobs:
codacy-issue-sync:
uses: TransactionProcessing/org-ci-workflows/.github/workflows/sync-codacy-issues.yml@main
secrets: inherit
with:
# Optional: you can omit both and the reusable workflow will default them
# to the calling repo owner/name. Keeping them explicit is fine too.
codacy_org: TransactionProcessing
codacy_repo: EstateManagementUI

# Optional knobs
dry_run: false
severity_filter: "Error,High,Warning,Info"
extra_labels: ""
assignees: ""
32 changes: 14 additions & 18 deletions .github/workflows/codecoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@ on:
# branches to consider in the event; optional, defaults to all
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: read
code-quality: write

jobs:
codecoverage:
name: "Code Coverage"
Expand All @@ -23,9 +16,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions/checkout@v2.3.4

- name: Restore Nuget Packages
run: dotnet restore EstateManagementUI.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }}
Expand All @@ -36,13 +27,18 @@ jobs:
- name: Run Unit Tests
run: |
echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}"
mkdir -p "$GITHUB_WORKSPACE/coverage"
dotnet test EstateManagementUI.BlazorServer.Tests/EstateManagementUI.BlazorServer.Tests.csproj --settings .runsettings /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="$GITHUB_WORKSPACE/coverage/coverage" /maxcpucount:1 /p:CoverletOutputFormat="cobertura"
dotnet test EstateManagementUI.BlazorServer.Tests/EstateManagementUI.BlazorServer.Tests.csproj --settings .runsettings /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov1.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov"

- name: Install LCOV merger
run: npm install -g lcov-result-merger

- name: Merge LCOV reports
run: |
mkdir -p coverage
lcov-result-merger "*.info" > lcov.info

- name: Upload coverage report
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
uses: actions/upload-code-coverage@v1
- name: Upload merged coverage to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
with:
file: ${{ github.workspace }}/coverage/coverage.cobertura.xml
language: C#
label: code-coverage/blazor
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./lcov.info
49 changes: 0 additions & 49 deletions .github/workflows/semgrep.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .semgrepignore

This file was deleted.

Loading
Loading