Skip to content

Bump Microsoft.EntityFrameworkCore.Design from 8.0.8 to 9.0.13 #88

Bump Microsoft.EntityFrameworkCore.Design from 8.0.8 to 9.0.13

Bump Microsoft.EntityFrameworkCore.Design from 8.0.8 to 9.0.13 #88

Workflow file for this run

name: Backend CI
on:
push:
branches: [main]
paths:
- "Source/backend/**"
- ".github/workflows/backend-ci.yml"
pull_request:
branches: [main]
paths:
- "Source/backend/**"
- ".github/workflows/backend-ci.yml"
env:
DOTNET_VERSION: "8.0.x"
SOLUTION_PATH: Source/backend/ASideNote.sln
jobs:
build-and-test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: asidenote_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres -d asidenote_test"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore
run: dotnet restore ${{ env.SOLUTION_PATH }}
- name: Build
run: dotnet build ${{ env.SOLUTION_PATH }} --no-restore --configuration Release
- name: Install EF tools
run: dotnet tool install --global dotnet-ef
- name: Validate migrations
run: |
dotnet ef migrations list \
--project Source/backend/src/TableWorks.Infrastructure/ASideNote.Infrastructure.csproj \
--startup-project Source/backend/src/TableWorks.API/ASideNote.API.csproj \
--no-build \
--configuration Release
env:
ConnectionStrings__DefaultConnection: "Host=localhost;Port=5432;Database=asidenote_test;Username=postgres;Password=postgres"
- name: Apply migrations
run: |
dotnet ef database update \
--project Source/backend/src/TableWorks.Infrastructure/ASideNote.Infrastructure.csproj \
--startup-project Source/backend/src/TableWorks.API/ASideNote.API.csproj \
--no-build \
--configuration Release
env:
ConnectionStrings__DefaultConnection: "Host=localhost;Port=5432;Database=asidenote_test;Username=postgres;Password=postgres"
- name: Run tests
run: dotnet test ${{ env.SOLUTION_PATH }} --no-build --configuration Release --verbosity normal
env:
ConnectionStrings__DefaultConnection: "Host=localhost;Port=5432;Database=asidenote_test;Username=postgres;Password=postgres"