Repository navigation
fix: install and verify native EGL on Linux runners #107
This file contains hidden or 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: CI | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ main ] | |
| env: | |
| DOTNET_VERSION: '10.0.x' | |
| PLAYWRIGHT_INSTALL_DEPS: '1' | |
| jobs: | |
| build: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| - name: Restore dependencies | |
| run: dotnet restore ManagedCode.Playwright.Stealth.slnx | |
| - name: Install native graphics driver | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends libegl1 libegl-mesa0 libgles2 libgl1-mesa-dri | |
| - name: Build | |
| run: dotnet build ManagedCode.Playwright.Stealth.slnx --configuration Release --no-restore | |
| - name: Test | |
| run: xvfb-run --auto-servernum dotnet test --solution ManagedCode.Playwright.Stealth.slnx --configuration Release --no-build --verbosity normal |