Skip to content

Update LeXtudio.UnoPropertyGrid package version to 0.3.1 and enable N… #159

Update LeXtudio.UnoPropertyGrid package version to 0.3.1 and enable N…

Update LeXtudio.UnoPropertyGrid package version to 0.3.1 and enable N… #159

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
solution: UnoEdit.slnx
- os: macos-latest
solution: UnoEdit.slnx
- os: windows-latest
solution: UnoEdit.slnx
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'
- name: Build (Windows)
if: runner.os == 'Windows'
run: ./build.windows.bat Release
- name: Build (macOS/Linux)
if: runner.os != 'Windows'
run: dotnet build -c Release ${{ matrix.solution }}
- name: Run unit tests
run: dotnet test --no-build -c Release --verbosity minimal --filter "FullyQualifiedName!~UnoEdit.Skia.Desktop" ${{ matrix.solution }}
runtime-tests:
# RuntimeTests run inside the Skia Desktop app via Uno.UI.RuntimeTests.Engine.
# A virtual framebuffer (xvfb) is required on Linux for Skia rendering.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'
- name: Install xvfb and mesa (headless Skia)
run: |
sudo apt-get update -qq
# Install headless dependencies for Skia/GL — prefer commonly available package names.
sudo apt-get install -y --no-install-recommends \
xvfb libgl1-mesa-dri libgbm1 mesa-utils libx11-6 libxext6 libxrender1 libxrandr2 libxcursor1 libxi6 libxss1
- name: Build Skia Desktop app
run: |
dotnet build src/UnoEdit.Sample/UnoEdit.Sample.csproj \
-c Release -f net10.0-desktop --nologo
working-directory: ${{ github.workspace }}
- name: Run RuntimeTests headlessly
run: |
mkdir -p test-results
xvfb-run --auto-servernum --server-args='-screen 0 1280x1024x24' \
dotnet run --project src/UnoEdit.Sample/UnoEdit.Sample.csproj -c Release -f net10.0-desktop --no-build
env:
UNO_RUNTIME_TESTS_RUN_TESTS: 'true'
UNO_RUNTIME_TESTS_OUTPUT_PATH: ${{ github.workspace }}/test-results/runtime-tests.xml
working-directory: ${{ github.workspace }}
timeout-minutes: 5
- name: Publish RuntimeTest results
uses: dorny/test-reporter@v3
if: always()
with:
name: RuntimeTests (Skia Desktop)
path: test-results/runtime-tests.xml
reporter: dotnet-nunit
fail-on-error: true