Skip to content

Remove DistributedSemaphores functionality #2268

Remove DistributedSemaphores functionality

Remove DistributedSemaphores functionality #2268

Workflow file for this run

name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ "**" ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- test-project: Core/Cleipnir.ResilientFunctions.Tests
compose-service: ''
- test-project: Stores/MariaDB/Cleipnir.ResilientFunctions.MariaDB.Tests
compose-service: maria-db
db-name: mariadb
- test-project: Stores/PostgreSQL/Cleipnir.ResilientFunctions.PostgreSQL.Tests
compose-service: postgresql-db
db-name: postgres
- test-project: Stores/SqlServer/Cleipnir.ResilientFunctions.SqlServer.Tests
compose-service: sql-server-db
db-name: sqlserver
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- run: dotnet build Cleipnir.ResilientFunctions.sln
- if: matrix.compose-service != ''
run: docker compose up -d ${{ matrix.compose-service }}
- if: matrix.compose-service != ''
run: dotnet run --project ./Stores/EnsureDatabaseConnections/EnsureDatabaseConnections.csproj --no-build -- ${{ matrix.db-name }}
- run: dotnet test ./${{ matrix.test-project }} --no-build --logger "console;verbosity=detailed"
- if: always() && matrix.compose-service != ''
run: docker compose down