-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (61 loc) · 2.15 KB
/
ci.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
name: Continuous Integration
on:
push:
jobs:
build-and-test-functional:
runs-on: ubuntu-latest
env:
working-directory: ./src/Codehard.Functional
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Install dependencies
working-directory: ${{env.working-directory}}
run: dotnet restore
- name: Build
working-directory: ${{env.working-directory}}
run: dotnet build Codehard.Functional.sln --configuration Release --no-restore /p:ContinuousIntegrationBuild=true
- name: Unit Test
working-directory: ${{env.working-directory}}
run: dotnet test Codehard.Functional.sln --no-restore --verbosity normal
build-and-test-common:
runs-on: ubuntu-latest
env:
working-directory: ./src/Codehard.Common
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Install dependencies
working-directory: ${{env.working-directory}}
run: dotnet restore
- name: Build
working-directory: ${{env.working-directory}}
run: dotnet build Codehard.Common.sln --configuration Release --no-restore /p:ContinuousIntegrationBuild=true
- name: Unit Test
working-directory: ${{env.working-directory}}
run: dotnet test Codehard.Common.sln --no-restore --verbosity normal
build-and-test-infra:
runs-on: ubuntu-latest
env:
working-directory: ./src/Codehard.Infrastructure
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Install dependencies
working-directory: ${{env.working-directory}}
run: dotnet restore
- name: Build
working-directory: ${{env.working-directory}}
run: dotnet build Codehard.Infrastructure.sln --configuration Release --no-restore /p:ContinuousIntegrationBuild=true
- name: Unit Test
working-directory: ${{env.working-directory}}
run: dotnet test Codehard.Infrastructure.sln --no-restore --verbosity normal