Skip to content

Add TechnicalDataBuilder with ECLASS/IEC-61360 validation and Template Integration #18

Add TechnicalDataBuilder with ECLASS/IEC-61360 validation and Template Integration

Add TechnicalDataBuilder with ECLASS/IEC-61360 validation and Template Integration #18

Workflow file for this run

name: PR Unit Tests
on:
pull_request:
branches:
- "**"
jobs:
test-gate:
name: PR Test Gate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
cache: true
cache-dependency-path: |
FluentAAS/**/*.csproj
FluentAAS/global.json
- name: Locate solution file
id: solution
shell: bash
run: |
SOLUTION=$(find . -maxdepth 5 -name "*.sln" | head -n 1)
if [ -z "$SOLUTION" ]; then
echo "❌ No solution file (*.sln) found in the repo."
exit 1
fi
echo "SOLUTION_PATH=$SOLUTION" >> $GITHUB_OUTPUT
echo "✅ Found solution: $SOLUTION"
- name: Restore dependencies
run: dotnet restore "${{ steps.solution.outputs.SOLUTION_PATH }}"
- name: Build solution
run: dotnet build "${{ steps.solution.outputs.SOLUTION_PATH }}" -c Release --no-restore
# Blocking PR gate: reviewers can see this check and it must pass before merge.
- name: Run unit tests (blocking gate)
run: dotnet test "${{ steps.solution.outputs.SOLUTION_PATH }}" -c Release --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx"
- name: Upload test result artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: pr-test-results
path: |
**/TestResults/*.trx
**/test-results.trx