Skip to content

Commit

Permalink
Use xvfb in test
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Dec 3, 2023
1 parent 6040f99 commit 758d65c
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,10 @@ jobs:
- name: Build Current Binary
run: npm run build

- name: Audio Device - Unix
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'macos-11'
uses: LABSN/sound-ci-helpers@v1

- name: Audio Device - Windows
if: matrix.os == 'windows-2022'
shell: powershell
run: |
Start-Service audio*
Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/3.6/Scream3.6.zip -OutFile C:\Scream3.6.zip
Extract-7Zip -Path C:\Scream3.6.zip -DestinationPath C:\Scream
$cert = (Get-AuthenticodeSignature C:\Scream\Install\driver\Scream.sys).SignerCertificate
$store = [System.Security.Cryptography.X509Certificates.X509Store]::new("TrustedPublisher", "LocalMachine")
$store.Open("ReadWrite")
$store.Add($cert)
$store.Close()
cd C:\Scream\Install\driver
C:\Scream\Install\helpers\devcon install Scream.inf *Scream
- name: Run Unit Tests - Linux
if: matrix.os == 'ubuntu-20.04'
run: xvfb-run --auto-servernum npm run test-ci

- name: Run Unit Tests
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'windows-2022' || matrix.os == 'macos-11'
run: npm test
if: matrix.os != 'windows-2022' && matrix.os != 'ubuntu-20.04'
run: npm run test-ci

0 comments on commit 758d65c

Please sign in to comment.