Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/main_kooktime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
jobs:
test:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'

steps:
- name: "Checkout Github Action"
Expand All @@ -30,9 +31,16 @@ jobs:
- name: Test
run: scripts/test

- name: Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: .NET Tests
path: src/CookTimeTests/TestResults/*.trx
reporter: dotnet-trx

deploy:
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

steps:
Expand Down
3 changes: 2 additions & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ echo "API is healthy!"
echo ""
echo "Running tests..."
cd "$(dirname "$0")/../src/CookTimeTests"
dotnet test --verbosity normal
dotnet build -v minimal
dotnet test --verbosity normal --no-build --logger "trx;LogFileName=test-results.trx" -- RunConfiguration.DisableParallelization=true