-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (43 loc) · 1.17 KB
/
1_BuildAndTest.yml
File metadata and controls
44 lines (43 loc) · 1.17 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
name: Build&Tests
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Clean bin\debug
run: remove-item -path .\Src\bin\Debug\netcoreapp3.1\FlowChartCore.* -force
shell: pwsh
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
- name: Install dependencies
run: dotnet restore .\src\
- name: Build
run: dotnet build .\src\ --no-restore
- uses: actions/upload-artifact@v2
with:
name: my-artifact
path: .\Src\bin\Debug\netcoreapp3.1\
tests:
runs-on: windows-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v4.1.7
id: download
with:
name: 'my-artifact'
path: .\temp
- name: Copy EveryThing From Temp To debug
run: |
copy-item .\temp\* .\Src\bin\Debug\netcoreapp3.1\ -Force
rmdir .\temp -recurse -force
shell: pwsh
- name: Pester Test(s)
run: Invoke-Pester -Path .\Test\UseCases.Tests.ps1 -Output Detailed -CI
shell: pwsh