Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(ci) add version test #1286

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/tests-01-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,16 @@ jobs:
echo "Failed to detect ${APP} as installed" >&2
exit 1
else
./deb-get purge "${APP}"
PUBLISHED_VER=$(./deb-get show "${APP}" | grep "Published:" | grep -oE '[^[:space:]]+$' || :)
INSTALLED_VER=$(./deb-get show "${APP}" | grep "Installed:" | grep -oE '[^[:space:]]+$' || :)
silentJET85 marked this conversation as resolved.
Show resolved Hide resolved
if [ ! -z "${PUBLISHED_VER// /}" ] && [ "${PUBLISHED_VER}" != "${INSTALLED_VER}" ]; then
silentJET85 marked this conversation as resolved.
Show resolved Hide resolved
echo "Versions do not match. The package's VERSION_PUBLISHED variable may need to be changed." >&2
echo "Published Version: ${PUBLISHED_VER}"
echo "Installed Version: ${INSTALLED_VER}"
exit 1
else
./deb-get purge "${APP}"
fi
fi
fi
done