Skip to content

test enable AudioTest. #370

test enable AudioTest.

test enable AudioTest. #370

Workflow file for this run

name: Unit Test
on:
push:
branches: develop
pull_request:
branches: develop
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
unitTest:
name: "Unit Test"
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
LANG: en_US.utf-8
container:
image: debian:sid
steps:
- name: "Checkout Source Code"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pulseaudio
run: |
apt-get -yq update
apt-get -yq install pulseaudio mpv alsa-utils
- name: Prepare building user
run: |
useradd -m -s /bin/bash builder
cp Live2DForScala /home/builder
chown builder:builder /home/builder/Live2DForScala
ls -l
su - builder
- name: Start pulseaudio
run: |
whoami
pulseaudio &
- name: List sound card
run: |
pactl list
- name: Play sound file
run: |
mpv ./modules/core/src/test/resources/sounds/32.wav
- name: Unit test
uses: ./.github/actions/run-unit-test