Skip to content

Update codeql-analysis-csharp.yaml #5

Update codeql-analysis-csharp.yaml

Update codeql-analysis-csharp.yaml #5

Workflow file for this run

name: Demo Project
on:
push:
branches:
- master
- release-*
pull_request:
branches: [master]
paths:
- "**.cs"
- "**.csproj"
jobs:
build:
name: Demo Project
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022]
env:
DOTNET_VERSION: '6.0.x' # The .NET SDK version to use
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Install dependencies
run: |
cd demos/PuppeteerSharpPdfDemo
dir
dotnet restore PuppeteerSharpPdfDemo-Local.csproj
- name: Build
run: |
cd demos/PuppeteerSharpPdfDemo
msbuild PuppeteerSharpPdfDemo-Local.csproj
- name: Run Project
run: |
cd demos/PuppeteerSharpPdfDemo
dotnet run -p PuppeteerSharpPdfDemo-Local.csproj -f net6.0 auto-exit