Skip to content

update testcontainers #979

update testcontainers

update testcontainers #979

name: Run Website Backend Tests
on:
push:
paths:
- "src/web/Jordnaer/**"
- "tests/web/Jordnaer.Tests/**"
- ".github/workflows/website_backend_ci.yml"
env:
WORKING_DIRECTORY: tests/web/Jordnaer.Tests
jobs:
test:
# Don't run the action if it was triggered by a tag push
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.x"
- name: Test
# Dependabot cannot access secrets, so we disable this step for Dependabot
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
run: >
dotnet test "${{ env.WORKING_DIRECTORY }}"
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
--filter Category!=ManualTest
env:
ConnectionStrings:AzureServiceBus: ${{ secrets.AZURE_SERVICE_BUS_CONNECTION_STRING }}