diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7bef74d..084cb08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,44 +1,44 @@ -name: CI - -on: - pull_request: - branches: [master] - -env: - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true - BUILD_CONFIGURATION: Release - BUILD_PLATFORM: x64 - -jobs: - build-and-test: - name: Build & Test - runs-on: windows-latest - - steps: - - uses: actions/checkout@v6 - - - name: Setup .NET 10 - uses: actions/setup-dotnet@v5 - with: - dotnet-version: '10.0.x' - - - name: Restore - run: dotnet restore ai-dev-net.slnx -p:Configuration=${{ env.BUILD_CONFIGURATION }} -p:Platform="${{ env.BUILD_PLATFORM }}" - - - name: Build - run: dotnet build ai-dev-net.slnx --configuration ${{ env.BUILD_CONFIGURATION }} --no-restore -p:Platform="${{ env.BUILD_PLATFORM }}" - - - name: Unit Tests - run: > - dotnet test ai-dev-net.tests.unit/ai-dev-net.tests.unit.csproj - --configuration ${{ env.BUILD_CONFIGURATION }} - --no-build - --logger trx - --results-directory TestResults - - - name: Upload test results - if: always() - uses: actions/upload-artifact@v7 - with: - name: unit-test-results - path: TestResults/*.trx +name: CI + +on: + pull_request: + branches: [master] + +env: + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true + BUILD_CONFIGURATION: Release + BUILD_PLATFORM: x64 + +jobs: + build-and-test: + name: Build & Test + runs-on: windows-latest + + steps: + - uses: actions/checkout@v7 + + - name: Setup .NET 10 + uses: actions/setup-dotnet@v5 + with: + dotnet-version: '10.0.x' + + - name: Restore + run: dotnet restore ai-dev-net.slnx -p:Configuration=${{ env.BUILD_CONFIGURATION }} -p:Platform="${{ env.BUILD_PLATFORM }}" + + - name: Build + run: dotnet build ai-dev-net.slnx --configuration ${{ env.BUILD_CONFIGURATION }} --no-restore -p:Platform="${{ env.BUILD_PLATFORM }}" + + - name: Unit Tests + run: > + dotnet test ai-dev-net.tests.unit/ai-dev-net.tests.unit.csproj + --configuration ${{ env.BUILD_CONFIGURATION }} + --no-build + --logger trx + --results-directory TestResults + + - name: Upload test results + if: always() + uses: actions/upload-artifact@v7 + with: + name: unit-test-results + path: TestResults/*.trx