On main: cline checkpoint session=1789068735674_bk9xf run=1
This commit is contained in:
commit
f894c2a69c
11 files changed
+700
-112
No files matched your search
@@ -2,7 +2,9 @@
|
||||
#
|
||||
# Dedicated test workflow: builds the application and runs the full test suite
|
||||
# (ctest) on every push and pull request. Kept separate from the release
|
||||
# workflow so a failing test never blocks a release.
|
||||
# workflow so a failing test never blocks a release. Also guards the
|
||||
# `version` file: it must match the latest git tag (if any), otherwise the
|
||||
# self-update check would report a phantom update.
|
||||
|
||||
name: tests
|
||||
|
||||
@@ -12,6 +14,33 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
version-guard:
|
||||
runs-on: linux
|
||||
steps:
|
||||
- name: Checkout with full history and tags
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
fetch-tags: true
|
||||
|
||||
- name: Check version file matches latest tag (when tags exist)
|
||||
run: |
|
||||
VERSION=$(tr -d ' \n' < version)
|
||||
echo "version file: ${VERSION}"
|
||||
LATEST=$(git describe --tags --abbrev=0 2>/dev/null || true)
|
||||
if [ -z "${LATEST}" ]; then
|
||||
echo "No tags yet — skipping version guard"
|
||||
exit 0
|
||||
fi
|
||||
# Tags are like v1.3.1 / V1.3.1 ; the file holds 1.3.1
|
||||
NORMALIZED=$(echo "${LATEST}" | sed -E 's/^[vV]//')
|
||||
echo "latest tag: ${LATEST} (normalized: ${NORMALIZED})"
|
||||
if [ "${VERSION}" != "${NORMALIZED}" ]; then
|
||||
echo "::error::version file (${VERSION}) does not match latest tag ${LATEST} (expected ${NORMALIZED}). Bump the version file before tagging."
|
||||
exit 1
|
||||
fi
|
||||
echo "version file matches latest tag"
|
||||
|
||||
build-test:
|
||||
runs-on: linux
|
||||
steps:
|
||||
|
||||
Reference in new issue
Block a user