fix build
All checks were successful
SonarQube / Build and analyze (pull_request) Successful in 3m3s
Tests / Run Tests (pull_request) Successful in 2m25s

This commit is contained in:
Leonid Pershin
2025-10-22 04:20:39 +03:00
parent 96026fb69e
commit 85515b89e1
2 changed files with 52 additions and 4 deletions

View File

@@ -0,0 +1,40 @@
name: Tests
on:
push:
branches:
- master
- develop
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Restore dependencies
run: dotnet restore --verbosity normal
- name: Build
run: dotnet build --configuration Release --no-restore --verbosity normal
- name: Run tests
run: dotnet test --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx"
- name: Test Summary
if: always()
run: |
if [ -f "**/test-results.trx" ]; then
echo "✅ Tests completed"
else
echo "❌ Test results not found"
fi