Compare commits
10 Commits
a4e609e62f
...
5b1896396d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b1896396d | ||
|
|
95223dc5c6 | ||
|
|
a5d076880b | ||
|
|
d2ce33cfeb | ||
|
|
9ca630c421 | ||
|
|
a17f1aeca6 | ||
|
|
6af52227f3 | ||
|
|
a7cf601085 | ||
|
|
4ba0e5ba0b | ||
|
|
d914bdae75 |
@@ -1,4 +1,4 @@
|
|||||||
name: Tests
|
name: Unit Tests
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -30,20 +30,14 @@ jobs:
|
|||||||
run: dotnet build --no-restore --verbosity normal
|
run: dotnet build --no-restore --verbosity normal
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: dotnet test --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx" --results-directory ./TestResults
|
run: dotnet test --no-build --verbosity minimal --logger "trx;LogFileName=test-results.trx" --results-directory ./TestResults
|
||||||
|
|
||||||
- name: Generate test report
|
- name: Generate test report
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
echo "Test results:"
|
echo "Test results:"
|
||||||
find ./TestResults -name "*.trx" -exec echo "Found test result file: {}" \;
|
find ./TestResults -name "*.trx" -exec echo "Found test result file: {}" \;
|
||||||
|
echo "File sizes:"
|
||||||
- name: Upload test results
|
find ./TestResults -name "*.trx" -exec ls -lh {} \;
|
||||||
if: always()
|
echo "✅ Tests completed successfully"
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: test-results
|
|
||||||
path: ./TestResults/
|
|
||||||
retention-days: 30
|
|
||||||
if-no-files-found: warn
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user