Skip to content

v5.0.0 compatible with PuppeteerSharp >= 19.0.2 and tested #30

v5.0.0 compatible with PuppeteerSharp >= 19.0.2 and tested

v5.0.0 compatible with PuppeteerSharp >= 19.0.2 and tested #30

Workflow file for this run

name: build
on:
push:
branches:
- main
- release-*
pull_request:
branches: [ main ]
paths:
- '**.cs'
- '**.csproj'
env:
DOTNET_VERSION: '6.0.x' # The .NET SDK version to use
jobs:
build:
name: build-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install dependencies
run: |
dotnet restore PuppeteerSharp.Dom.sln
dotnet dev-certs https -ep PuppeteerSharp.Dom.TestServer/testCert.cer
sudo openssl x509 -inform der -in PuppeteerSharp.Dom.TestServer/testCert.cer -out /usr/local/share/ca-certificates/testCert.crt -outform pem
sudo update-ca-certificates
- name: Build
run: |
echo "Buid version is 4.0.${{github.run_number}}"
dotnet build PuppeteerSharp.Dom.sln /p:Version=4.0.${{github.run_number}} --configuration Release
- name: Test
run: |
Xvfb :1 -screen 5 1024x768x8 &
export DISPLAY=:1.5
cd PuppeteerSharp.Dom.Tests
dotnet test -f net6.0 -s test.runsettings -c Debug --logger "trx;LogFileName=TestResults.xml"
- name: Publish Nuget packages
run: |
dotnet nuget push PuppeteerSharp.Dom/bin/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/ChromiumDotNet/index.json
dotnet nuget push PuppeteerSharp.Dom/bin/Release/*.nupkg -k ${{ secrets.PuppeteerSharpDom }} -s https://www.myget.org/F/cefsharp/api/v3/index.json