-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (42 loc) · 1.41 KB
/
test.yml
File metadata and controls
55 lines (42 loc) · 1.41 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: .NET Unit Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14.2-alpine
ports:
- 8765:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: Pass@word
POSTGRES_DB: TestContext
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Install Entity Framework Tool
run: |
dotnet tool install --global dotnet-ef
dotnet tool restore
- name: Migrate LinqCheckConstraints.Tests.Postgres
run: dotnet ef migrations add AddInitialMigration -p LinqCheckConstraints.Tests.Postgres
- name: Update LinqCheckConstraints.Tests.Postgres
run: dotnet ef database update -p LinqCheckConstraints.Tests.Postgres
- name: Migrate LinqCheckConstraints.Tests.Postgres.AspNetCore
run: dotnet ef migrations add AddInitialMigration -p LinqCheckConstraints.Tests.Postgres.AspNetCore
- name: Update LinqCheckConstraints.Tests.Postgres.AspNetCore
run: dotnet ef database update -p LinqCheckConstraints.Tests.Postgres.AspNetCore
- name: Test
run: dotnet test --no-build --verbosity normal