Skip to content

Fix GitHub Actions workflow: update setup-dotnet to v4 and remove bro… #2212

Fix GitHub Actions workflow: update setup-dotnet to v4 and remove bro…

Fix GitHub Actions workflow: update setup-dotnet to v4 and remove bro… #2212

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:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- run: dotnet build Cleipnir.ResilientFunctions.sln
test:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
test-project:
- Core/Cleipnir.ResilientFunctions.Tests
- Stores/MariaDB/Cleipnir.ResilientFunctions.MariaDB.Tests
- Stores/PostgreSQL/Cleipnir.ResilientFunctions.PostgreSQL.Tests
- Stores/SqlServer/Cleipnir.ResilientFunctions.SqlServer.Tests
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- run: dotnet build Cleipnir.ResilientFunctions.sln
- run: docker compose up -d
- run: dotnet run --project ./Stores/EnsureDatabaseConnections/EnsureDatabaseConnections.csproj --no-build
- run: dotnet test ./${{ matrix.test-project }} --no-build --logger "console;verbosity=detailed"
- if: always()
run: docker compose down