test enable AudioTest. #370
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |