Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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 |