From 8fddf8013ad34fa1c7e940599c474719609a74c8 Mon Sep 17 00:00:00 2001 From: Bernhard Suttner Date: Sat, 18 Jan 2025 15:10:54 +0100 Subject: [PATCH] Run test after creation --- .github/workflows/build.yml | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5788553c..ceed85ef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,11 +33,36 @@ jobs: - name: Install dependencies run: | + export DEBIAN_FRONTEND="noninteractive" apt-get update - apt-get install -y sudo libarchive-tools curl zsync squashfs-tools aria2 desktop-file-utils wget fuse binutils file imagemagick + apt-get install -y sudo libarchive-tools curl zsync squashfs-tools aria2 desktop-file-utils wget fuse binutils file imagemagick gcc - - name: Build and Release + - name: Build pkg2appimage run: | - bash -ex dogfeeding.sh - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh - bash upload.sh ./out/pkg2appimage*.AppImage* + bash -ex dogfeeding.sh + + - name: Test to create neoVim AppImage + run: | + chmod +x ./out/pkg2appimage*.AppImage* + ./out/pkg2appimage*.AppImage* recipes/neovim.yml + + - name: Verify AppImage Creation and Test + run: | + if ls out/neovim-*.AppImage 1> /dev/null 2>&1; then + echo "Neovim AppImage successfully created." + ./out/neovim-*.AppImage --version | tee version_output.txt + if grep -q "NVIM" version_output.txt && grep -q "Build type: Release" version_output.txt; then + echo "Neovim AppImage test passed." + else + echo "Neovim AppImage test failed: Version output is incorrect." >&2 + exit 1 + fi + else + echo "Failed to create Neovim AppImage." >&2 + exit 1 + fi + + - name: Release + run: | + wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh + bash upload.sh ./out/pkg2appimage*.AppImage*