-
Notifications
You must be signed in to change notification settings - Fork 82
78 lines (72 loc) · 2.08 KB
/
build.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Build
on: [push, pull_request]
jobs:
build-quick:
name: Quick Build
runs-on: ubuntu-latest
steps:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0'
- uses: actions/checkout@v3
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test ./test/FlexLabs.EntityFrameworkCore.Upsert.Tests --no-build --logger "trx;LogFileName=test-results.trx"
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test Results (quick)
path: '**/TestResults/*.trx'
reporter: dotnet-trx
build-ubuntu:
name: Full Build (Ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0'
- uses: actions/checkout@v3
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --logger "trx;LogFileName=test-results.trx"
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test Results (ubuntu)
path: '**/TestResults/*.trx'
reporter: dotnet-trx
build-windows:
name: Full Build (Windows)
runs-on: windows-latest
steps:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0'
- uses: actions/checkout@v3
- name: Enable Postgres
run: sc config postgresql-x64-14 start= demand
- name: Start Postgres
run: net start postgresql-x64-14
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore /p:POSTGRES_ONLY=true
- name: Test
env:
USE_LOCAL_SERVICE: 'true'
run: dotnet test --no-build --logger "trx;LogFileName=test-results.trx"
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test Results (windows)
path: '**/TestResults/*.trx'
reporter: dotnet-trx