Skip to content

Commit b8dab82

Browse files
committed
ci: set QT_QPA_PLATFORM for macOS tests to fix headless environment
1 parent 83e10d0 commit b8dab82

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/dotnetcore.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ jobs:
4848
- name: Test on Linux and macOS - net8.0
4949
if: runner.os != 'Windows'
5050
run: dotnet test src/Magicodes.ExporterAndImporter.Tests/Magicodes.IE.Tests.csproj -c Release --no-build -f net8.0
51+
env:
52+
QT_QPA_PLATFORM: ${{ runner.os == 'macOS' && 'cocoa' || 'offscreen' }}
5153

5254
- name: Test on Linux and macOS - net10.0
5355
if: runner.os != 'Windows'
5456
run: dotnet test src/Magicodes.ExporterAndImporter.Tests/Magicodes.IE.Tests.csproj -c Release --no-build -f net10.0
57+
env:
58+
QT_QPA_PLATFORM: ${{ runner.os == 'macOS' && 'cocoa' || 'offscreen' }}

0 commit comments

Comments
 (0)