Skip to content
Merged
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
34 changes: 34 additions & 0 deletions .github/workflows/nuget_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,32 @@ jobs:
issues: write
pull-requests: write
timeout-minutes: 30
services:
postgres:
image: postgres:17
env:
POSTGRES_USER: trax
POSTGRES_PASSWORD: trax123
POSTGRES_DB: trax
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U trax"
--health-interval=10s
--health-timeout=5s
--health-retries=5
rabbitmq:
image: rabbitmq:4-management
env:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- 5672:5672
options: >-
--health-cmd="rabbitmq-diagnostics -q ping"
--health-interval=10s
--health-timeout=5s
--health-retries=10
steps:
- name: Generate token
id: app-token
Expand Down Expand Up @@ -53,6 +79,14 @@ jobs:
- name: Build
run: dotnet build --configuration Release

- name: Create test databases
env:
PGPASSWORD: trax123
run: |
for db in trax_e2e_tests chat_e2e_tests energyhub_e2e_tests jobhunt_e2e_tests; do
psql -h localhost -U trax -d trax -c "CREATE DATABASE \"$db\";"
done

- name: Test
run: dotnet test --configuration Release --no-build --collect:"XPlat Code Coverage" --results-directory ./TestResults

Expand Down
Loading