-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.3 KB
/
Copy pathsmoke-tests.yml
File metadata and controls
50 lines (42 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Smoke Tests
on:
workflow_dispatch:
inputs:
platform:
description: 'Platform to test'
required: true
default: 'all'
type: choice
options:
- all
- windows
- linux
- macos
permissions:
contents: read
jobs:
smoke-test:
name: Smoke Test - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ${{ fromJson(github.event.inputs.platform == 'all' && '["ubuntu-latest", "windows-latest", "macos-latest"]' || github.event.inputs.platform == 'windows' && '["windows-latest"]' || github.event.inputs.platform == 'linux' && '["ubuntu-latest"]' || '["macos-latest"]') }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y alsa-utils pulseaudio pipewire
- name: Build Sample App
run: |
dotnet build samples/XVolume.Sample.csproj --configuration Release
- name: Run Smoke Test
run: |
dotnet run --project samples/XVolume.Sample.csproj --configuration Release -- --test
continue-on-error: true