Skip to content

Commit

Permalink
Run test after creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernhard committed Jan 18, 2025
1 parent f542444 commit c902d69
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,30 @@ jobs:
apt-get update
apt-get install -y sudo libarchive-tools curl zsync squashfs-tools aria2 desktop-file-utils wget fuse binutils file imagemagick git
- name: Build and Release
- 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: |
export VERSION=$(git rev-parse --short HEAD)
bash -ex dogfeeding.sh
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
bash upload.sh ./out/pkg2appimage*.AppImage*

0 comments on commit c902d69

Please sign in to comment.