forked from ardalis/pluralsight-ddd-fundamentals
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (39 loc) · 1.15 KB
/
ci-frontdesk.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
name: FrontDesk CI Pipeline
on:
push:
paths: [ 'FrontDesk/src/**' ]
pull_request:
paths: [ 'FrontDesk/src/**' ]
workflow_dispatch:
jobs:
ci:
name: Continuous Integration
runs-on: windows-latest
steps:
- name: Setup .NET Core
id: setup_dotnet_core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.301
- name: Checkout repository
id: checkout_repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build solution
id: build_solution
shell: pwsh
run: |
dotnet nuget add source ${{ github.workspace }}\FrontDesk\src\FrontDesk.Blazor\deps --name Pluralsight.DDD.Deps
dotnet build .\FrontDesk\FrontDesk.sln --configuration Release --output Artifacts
- name: Run unit tests
id: run_unit_tests
shell: pwsh
run: |
dotnet test .\FrontDesk\FrontDesk.sln --configuration Release --no-build --output Artifacts
- name: Upload artifacts
id: upload_artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: Artifacts/