-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.02 KB
/
dotnet.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
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: sa
POSTGRES_PASSWORD: qwerty123
POSTGRES_DB: planning_poker
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: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Tests
run: dotnet test ./Tests/Tests.fsproj --no-build --verbosity normal -l "console;verbosity=detailed"
- name: Integration Tests
run: dotnet test ./IntegrationTests/IntegrationTests.fsproj --no-build --verbosity normal -l "console;verbosity=detailed"