Skip to content

deps(actions): Bump the actions-all group across 1 directory with 11 updates #427

deps(actions): Bump the actions-all group across 1 directory with 11 updates

deps(actions): Bump the actions-all group across 1 directory with 11 updates #427

Workflow file for this run

name: Build
on:
push:
branches: [dev, main]
pull_request:
branches: [dev, main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
lfs: true
- uses: actions/setup-dotnet@v6
with:
dotnet-version: "9.0.x"
- name: Clean up old test databases
run: rm -rf /tmp/maenifold-test-root || true
- run: dotnet restore src/Maenifold.csproj
- run: dotnet build src/Maenifold.csproj --configuration Release --no-restore
- name: Run tests with coverage
run: >-
dotnet test tests/Maenifold.Tests/Maenifold.Tests.csproj
--configuration Release
--verbosity normal
--filter "FullyQualifiedName!~AssetDiscoveryAndRetrievalFlow_IsConsistent&FullyQualifiedName!~AllSearchModesRespectMinScore&FullyQualifiedName!~MinScoreOneReturnsOnlyPerfectMatches&FullyQualifiedName!~MinScoreZeroReturnsAllResults&FullyQualifiedName!~Debounce_RapidChangesToSamePath_CoalescesIntoSingleProcessing"
- name: Coverage summary
if: always()
run: |
REPORT="tests/Maenifold.Tests/coverage/coverage.cobertura.xml"
if [ -f "$REPORT" ]; then
# Extract attributes from the root <coverage> element without xmllint
LINE=$(sed -n 's/.*line-rate="\([^"]*\)".*/\1/p' "$REPORT" | head -1)
BRANCH=$(sed -n 's/.*branch-rate="\([^"]*\)".*/\1/p' "$REPORT" | head -1)
COVERED=$(sed -n 's/.*lines-covered="\([^"]*\)".*/\1/p' "$REPORT" | head -1)
TOTAL=$(sed -n 's/.*lines-valid="\([^"]*\)".*/\1/p' "$REPORT" | head -1)
LINE_PCT=$(awk "BEGIN {printf \"%.1f\", $LINE * 100}")
BRANCH_PCT=$(awk "BEGIN {printf \"%.1f\", $BRANCH * 100}")
echo "## Code Coverage" >> "$GITHUB_STEP_SUMMARY"
echo "" >> "$GITHUB_STEP_SUMMARY"
echo "| Metric | Value |" >> "$GITHUB_STEP_SUMMARY"
echo "|--------|-------|" >> "$GITHUB_STEP_SUMMARY"
echo "| Line | **${LINE_PCT}%** (${COVERED}/${TOTAL}) |" >> "$GITHUB_STEP_SUMMARY"
echo "| Branch | **${BRANCH_PCT}%** |" >> "$GITHUB_STEP_SUMMARY"
fi
# Known-failing tests excluded from CI:
# sqlite-vec platform differences (pass on macOS, fail on ubuntu-latest):
# - AssetDiscoveryAndRetrievalFlow_IsConsistent
# - AllSearchModesRespectMinScore / MinScoreOneReturnsOnlyPerfectMatches / MinScoreZeroReturnsAllResults
# Timing-sensitive (debounce window + processing exceeds sleep on slow CI runners):
# - Debounce_RapidChangesToSamePath_CoalescesIntoSingleProcessing