Merge branch 'main' into feature/ci-cd #9
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: 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/ |