feat(testing): update test apps with generic polling and add CI/CD pipeline

- Update iOS and Android test apps with generic polling interface support
- Add testGenericPolling(), testPollingSchedule(), and testPollingResults() methods
- Include comprehensive testing of GenericPollingRequest creation and validation
- Add PollingScheduleConfig testing with cron expressions and platform adapters
- Test PollingResult handling with watermark CAS and acknowledgment flows
- Update test-apps/README.md with generic polling testing capabilities
- Add .github/workflows/ci.yml with automated testing pipeline
- Include linting, unit tests (workspaces), and k6 smoke test execution
- Add k6/poll-ack-smoke.js for fault-injection testing of poll and ack endpoints
- Support cross-platform testing with consistent TypeScript interfaces
- Include platform-specific optimizations (WorkManager, BGTaskScheduler, Service Workers)

Provides comprehensive testing infrastructure for the generic polling system.
This commit is contained in:
Matthew Raymer
2025-10-07 04:44:27 +00:00
parent 8ee97e5401
commit c548db1cfd
6 changed files with 593 additions and 1 deletions

20
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: CI
on: [push, pull_request]
jobs:
test-and-smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 20 }
- run: npm ci
- run: npm run lint
- run: npm test --workspaces
- name: k6 smoke (poll+ack)
uses: grafana/k6-action@v0.3.1
with:
filename: k6/poll-ack-smoke.js
env:
API: ${{ secrets.SMOKE_API }}
JWT: ${{ secrets.SMOKE_JWT }}