Skip to content

Commit c902d69

Browse files
committed
Run test after creation
1 parent f542444 commit c902d69

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,30 @@ jobs:
3636
apt-get update
3737
apt-get install -y sudo libarchive-tools curl zsync squashfs-tools aria2 desktop-file-utils wget fuse binutils file imagemagick git
3838
39-
- name: Build and Release
39+
- name: Test to create neoVim AppImage
40+
run: |
41+
chmod +x ./out/pkg2appimage*.AppImage*
42+
./out/pkg2appimage*.AppImage* recipes/neovim.yml
43+
44+
- name: Verify AppImage Creation and Test
45+
run: |
46+
if ls out/neovim-*.AppImage 1> /dev/null 2>&1; then
47+
echo "Neovim AppImage successfully created."
48+
./out/neovim-*.AppImage --version | tee version_output.txt
49+
if grep -q "NVIM" version_output.txt && grep -q "Build type: Release" version_output.txt; then
50+
echo "Neovim AppImage test passed."
51+
else
52+
echo "Neovim AppImage test failed: Version output is incorrect." >&2
53+
exit 1
54+
fi
55+
else
56+
echo "Failed to create Neovim AppImage." >&2
57+
exit 1
58+
fi
59+
60+
- name: Release
4061
run: |
4162
export VERSION=$(git rev-parse --short HEAD)
42-
bash -ex dogfeeding.sh
4363
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
4464
bash upload.sh ./out/pkg2appimage*.AppImage*
65+

0 commit comments

Comments
 (0)