Point docs at Gitea and enable Actions workflow path
All checks were successful
CI / Lint + tests (push) Successful in 10m33s
All checks were successful
CI / Lint + tests (push) Successful in 10m33s
Add .gitea/workflows CI mirror and link the README to git.levkin.ca.
This commit is contained in:
parent
c91cd221d1
commit
f79552249e
75
.gitea/workflows/ci.yml
Normal file
75
.gitea/workflows/ci.yml
Normal file
@ -0,0 +1,75 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master, main]
|
||||
pull_request:
|
||||
branches: [master, main]
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
name: Lint + tests
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: automation
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
cache: pip
|
||||
cache-dependency-path: automation/pyproject.toml
|
||||
|
||||
- name: Set up Node (JS syntax check only)
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
- name: Syntax-check extension JS
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
for f in \
|
||||
extension/core/dom.js \
|
||||
extension/core/prompt.js \
|
||||
extension/page-patcher.js \
|
||||
extension/content.js \
|
||||
extension/background.js \
|
||||
extension/popup.js
|
||||
do
|
||||
node --check "$f"
|
||||
echo "OK $f"
|
||||
done
|
||||
python3 -m json.tool extension/manifest.json >/dev/null
|
||||
echo "OK extension/manifest.json"
|
||||
|
||||
- name: Verify shared-core symlinks
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
test -L automation/context_extractor/js/dom.js
|
||||
test -L automation/context_extractor/js/prompt.js
|
||||
diff -q automation/context_extractor/js/dom.js extension/core/dom.js
|
||||
diff -q automation/context_extractor/js/prompt.js extension/core/prompt.js
|
||||
|
||||
- name: Install package + dev deps
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -e ".[dev]"
|
||||
|
||||
- name: Install Playwright Chromium
|
||||
run: playwright install --with-deps chromium
|
||||
|
||||
- name: Pytest
|
||||
run: pytest -q
|
||||
|
||||
- name: Package extension zip (smoke)
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
python3 scripts/package_extension.py
|
||||
test -f dist/context-extractor-extension.zip
|
||||
@ -1,5 +1,8 @@
|
||||
# Context Extractor
|
||||
|
||||
**Repo:** [git.levkin.ca/ilia/context-extractor](https://git.levkin.ca/ilia/context-extractor)
|
||||
**Clone:** `gitea@git.levkin.ca:ilia/context-extractor.git`
|
||||
|
||||
Capture console logs, network activity, JS errors, and clean markdown content
|
||||
from a webpage, formatted as an AI-ready prompt. Ships two ways from one
|
||||
shared core:
|
||||
@ -22,7 +25,7 @@ context-extractor/
|
||||
│ │ └── js/ symlinks → extension/core/*.js
|
||||
│ └── tests/ pytest + fixture page
|
||||
├── scripts/package_extension.py optional zip for distribution
|
||||
├── .github/workflows/ci.yml JS lint + pytest + package smoke
|
||||
├── .gitea/workflows/ci.yml Gitea Actions: JS lint + pytest + package smoke
|
||||
├── CURSOR_PROMPT.md paste into other Cursor chats
|
||||
└── Makefile make test / make lint / make package
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user