test enable AudioTest. #366
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 | |
HOME: /root | |
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 | |
- name: Start pulseaudio | |
run: | | |
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 | |