Repository navigation
release: 3.13.157 (Frond malformed-endblock hang fix) #223
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (c) 2026 Code Infinity | |
| # SPDX-License-Identifier: MPL-2.0 | |
| # This Source Code Form is subject to the terms of the Mozilla Public | |
| # License, v. 2.0. If a copy of the MPL was not distributed with this | |
| # file, You can obtain one at https://mozilla.org/MPL/2.0/. | |
| # Doc-drift gate: the packaged CLAUDE.md and the AI skills must not document an | |
| # API the code does not have. Fast, no live services -- it imports the package | |
| # and reads the tina4-js source, then checks every documented symbol resolves. | |
| name: Doc Drift | |
| on: | |
| push: | |
| branches: [v3] | |
| pull_request: | |
| branches: [v3] | |
| permissions: | |
| contents: read | |
| jobs: | |
| doc-drift: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout tina4-python | |
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| with: | |
| path: tina4-python | |
| # No-committed-symlinks gate. A file recorded in git with mode 120000 is a | |
| # symbolic link; Windows extraction (7-Zip, and therefore Composer on | |
| # Windows) refuses "dangerous link paths", so a leaked symlink fails every | |
| # Windows install -- the tina4-php repo shipped 134 of them by accident. | |
| # This runs against the checked-out tree's git index; the in-suite | |
| # tests/test_no_symlinks_gate.py proves it positive AND negative (mutation). | |
| - name: No committed symlinks | |
| working-directory: tina4-python | |
| run: sh scripts/check-no-symlinks.sh | |
| # The tina4-js skill's imports are checked against tina4-js's real exports, | |
| # so the sibling repo must sit beside this one (../tina4-js). | |
| - name: Checkout tina4-js (sibling, for its real exports) | |
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| with: | |
| repository: tina4stack/tina4-js | |
| ref: master | |
| path: tina4-js | |
| - name: Set up uv | |
| # SHA-pin third-party actions (ADR-0073 / CodeQL actions/unpinned-tag). | |
| uses: astral-sh/setup-uv@caf0cab7a618c569241d31dcd442f54681755d39 # v3.2.4 | |
| with: | |
| version: "latest" | |
| - name: Set up Python | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install package (for live introspection) | |
| working-directory: tina4-python | |
| run: uv sync | |
| - name: Doc-drift audit (strict) | |
| working-directory: tina4-python | |
| run: uv run python scripts/audit_doc_drift.py --strict --tina4-js ../tina4-js | |
| - name: Doc-drift gate mutation tests | |
| working-directory: tina4-python | |
| run: uv run python -m unittest discover -s scripts -p 'test_audit_doc_drift.py' |