mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-09-17 00:26:26 +00:00
ci: run CLI fixture/mock test suites (#134)
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
# Deliberately NOT here: live smoke tests of the job-portal CLIs. They hit
|
||||
# real portals (network-flaky, and the linkedin-search skill is personal-use
|
||||
# only per its own ToS warning - CI-automated requests would violate that).
|
||||
# CLIs get typechecked instead; live testing stays a local, on-demand step.
|
||||
# CI runs typechecks and the checked-in fixture/mock test suites only; live
|
||||
# portal testing stays a local, on-demand step.
|
||||
#
|
||||
# Security posture: this template ships pre-approved Claude Code permissions
|
||||
# and CLI code that every fork user executes, so the security-guards job
|
||||
@@ -129,8 +130,8 @@ jobs:
|
||||
grep -q 'Output written on cover_example.pdf (1 page' cover_letters/cover_example.log \
|
||||
|| { echo '::error::cover_letters/cover_example.tex no longer compiles to exactly 1 page'; exit 1; }
|
||||
|
||||
cli-typecheck:
|
||||
name: Typecheck ${{ matrix.tool }}
|
||||
cli-checks:
|
||||
name: CLI checks ${{ matrix.tool }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -149,6 +150,14 @@ jobs:
|
||||
working-directory: .agents/skills/${{ matrix.tool }}/cli
|
||||
- run: bun run typecheck
|
||||
working-directory: .agents/skills/${{ matrix.tool }}/cli
|
||||
- name: Run fixture/mock tests when present
|
||||
run: |
|
||||
if find tests -type f -name '*.test.ts' | grep -q .; then
|
||||
bun test
|
||||
else
|
||||
echo "No Bun tests found for ${{ matrix.tool }}; skipping"
|
||||
fi
|
||||
working-directory: .agents/skills/${{ matrix.tool }}/cli
|
||||
|
||||
placeholder-integrity:
|
||||
name: Placeholder integrity (upstream template only)
|
||||
|
||||
Reference in New Issue
Block a user