forked from ghasctl/puppeteer-sharp
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.04 KB
/
demo.yml
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
45
46
47
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/setup-msbuild@v1.1
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- 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