From a78b64065466fea8d16b4ebd44849f5f4fdd2ec3 Mon Sep 17 00:00:00 2001 From: xiaoming <2014500726@smail.xtu.edu.cn> Date: Mon, 14 Aug 2023 11:58:58 +0800 Subject: [PATCH] test:add test case Signed-off-by: xiaoming <2014500726@smail.xtu.edu.cn> --- .github/workflows/test_archlinux.yml | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/test_archlinux.yml diff --git a/.github/workflows/test_archlinux.yml b/.github/workflows/test_archlinux.yml new file mode 100644 index 0000000..510e79a --- /dev/null +++ b/.github/workflows/test_archlinux.yml @@ -0,0 +1,44 @@ +name: test_archlinux + +on: + push: + branches: [ test_archlinux ] + paths-ignore: + - 'doc/**' + - 'README.md' + - 'README_zh_CN.md' + - 'DEVELOPNOTE.md' + - '.readthedocs.yaml' + pull_request: + branches: [ test_archlinux ] + paths-ignore: + - 'doc/**' + - 'README.md' + - 'README_zh_CN.md' + - 'DEVELOPNOTE.md' + - '.readthedocs.yaml' + workflow_dispatch: + +jobs: + ubuntu-2004: + runs-on: ubuntu-20.04 + + steps: + - name: build_docker_image + shell: bash -l {0} + run: | + docker pull testcab/yay + + - uses: addnab/docker-run-action@v3 + with: + image: m0rf30/arch-yay:latest + run: | + yay -Syu --noconfirm yuvviewer-bin + echo "test ldd yuvviewer E" + ldd /opt/YUVviewer/YUVviewer + echo "test ldd yuvviewer X" + echo ".................................................." + echo "test run yuvviewer E" + /opt/YUVviewer/YUVviewer --version + echo "test run yuvviewer X" + \ No newline at end of file