Skip to content

fix: replace docker-compose by docker compose due to GitHub removing … #164

fix: replace docker-compose by docker compose due to GitHub removing …

fix: replace docker-compose by docker compose due to GitHub removing … #164

Workflow file for this run

name: Main Workflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Start all the environment
run: docker-compose up -d
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Init databases
run: docker exec codelytv-chsarp_ddd_skeleton-mssql /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Your_password123 -d master -i init.sql
- name: Init mooc database
run: docker exec codelytv-chsarp_ddd_skeleton-mssql /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Your_password123 -d master -i mooc.sql
- name: Init backoffice database
run: docker exec codelytv-chsarp_ddd_skeleton-mssql /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Your_password123 -d master -i backoffice.sql
- name: Unit Tests
run: dotnet test CsharpDDDSkeleton.sln