refactor(cscore): in-code-dokumentation und bridge-randfaelle stabilisieren #327
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: code-analysis-evidence | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| code-analysis-evidence: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 10.0.102 | |
| - name: Verify code analysis evidence | |
| run: bash tools/audit/verify-code-analysis-evidence.sh | |
| - name: Validate result schema | |
| if: always() | |
| run: dotnet restore --locked-mode tools/ci/checks/ResultSchemaValidator/ResultSchemaValidator.csproj && dotnet build -c Release tools/ci/checks/ResultSchemaValidator/ResultSchemaValidator.csproj && dotnet tools/ci/checks/ResultSchemaValidator/bin/Release/net10.0/ResultSchemaValidator.dll --schema tools/ci/schema/result.schema.json --result artifacts/ci/code-analysis-evidence/result.json | |
| - name: Upload Artifact | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: ci-code-analysis-evidence | |
| path: | | |
| artifacts/ci/code-analysis-evidence/ | |
| artifacts/audit/code_inventory.json | |
| artifacts/audit/callgraph_inventory.json | |
| artifacts/audit/dead_code_candidates.json | |
| artifacts/audit/redundancy_candidates.json | |
| artifacts/audit/hardening_candidates.json | |
| if-no-files-found: error |