Az CLI #785
Workflow file for this run
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
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: .NET (Windows) | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
pipeline-windows: | |
environment: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Pull Requests' }} | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup WSL | |
uses: Vampire/[email protected] | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Cache NuGet | |
uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Build | |
run: dotnet build ModularPipelines.sln -c Release --framework net7.0 | |
- name: Run Pipeline | |
run: dotnet run -c Release --framework net7.0 | |
working-directory: "src/ModularPipelines.Build" | |
env: | |
DOTNET_ENVIRONMENT: 'Development' | |
GitHub__Actor: ${{ github.actor }} | |
GitHub__Repository__Id: ${{ github.repository_id }} | |
GitHub__PullRequest__Number: ${{ github.event.number }} | |
GitHub__PullRequest__Branch: ${{ github.event.pull_request.head.ref }} | |
GitHub__PullRequest__Author: ${{ github.event.pull_request.user.login }} | |
Publish__ShouldPublish: false | |
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }} | |
- name: Upload Code Coverage Results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: code-coverage | |
path: '**/coverage*.xml' |