-
Notifications
You must be signed in to change notification settings - Fork 39
34 lines (31 loc) · 989 Bytes
/
dotnetcore.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
env:
ASPNETCORE_ENVIRONMENT: IntegrationTesting
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Start docker test container
run: docker-compose -f docker-compose.testing.yml up -d
- name: Check running containers
run: docker ps -a
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Install dotnet-ef tool
run: dotnet tool install --global dotnet-ef
- name: Apply Migrations
run: dotnet ef database update -s Microservice.Api/Microservice.Api.csproj -p Microservice.Db/Microservice.Db.csproj -c MicroserviceDbContext
- name: Test
run: dotnet test --no-restore --verbosity normal