Skip to content

Return proper mock data for leason status (#79) #72

Return proper mock data for leason status (#79)

Return proper mock data for leason status (#79) #72

Workflow file for this run

name: CI
on:
push:
branches: [ develop, main ]
pull_request:
branches: [ develop, main ]
jobs:
build:
runs-on: ubuntu-latest
env:
ASPNETCORE_ENVIRONMENT: CI
services:
postgres:
image: postgres
env:
POSTGRES_DB: teacher_workout_test
POSTGRES_PASSWORD: docker
POSTGRES_USER: docker
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet tool install --global dotnet-ef
- name: Restore dependencies
run: dotnet restore TeacherWorkout.sln
- name: Build
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true TeacherWorkout.sln
- name: Build Migrator
run: dotnet build /p:ContinuousIntegrationBuild=true TeacherWorkout.Migrator.sln
- name: Apply migrations
run: |
cd ./TeacherWorkout.Migrator/bin/Debug/net8.0
dotnet TeacherWorkout.Migrator.dll
env:
ConnectionStrings__IdentityDbConnectionString: Server=localhost;Port=5432;Database=teacher_workout_test;User Id=docker;Password=docker;
SeedData: false
- name: Run tests
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover TeacherWorkout.sln
env:
JwtConfig__Secret: ${{ secrets.JWTSECRET }}