Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
7ed2d71
feat(api): add express wrappers
jumpy-cat Jul 3, 2026
2dba4f2
feat(api): openapi docs generation
jumpy-cat Jul 4, 2026
45df1c7
feat(api): add support for defining post routes
jumpy-cat Jul 12, 2026
2c918c4
feat(api): support having no req/res bodies
jumpy-cat Jul 12, 2026
24a7945
clean up the openapi output a bit and fix a typo confusing the reques…
jumpy-cat Jul 15, 2026
403ef7e
try demo action
jumpy-cat Jul 17, 2026
6bc0ca3
do some actual stuff
jumpy-cat Jul 17, 2026
325dfb8
remove colon
jumpy-cat Jul 17, 2026
12cc6b9
behavior when jobs are ran in parallel?
jumpy-cat Jul 17, 2026
2f8e99a
typecheck and test in parallel
jumpy-cat Jul 17, 2026
25bd00a
tests wait for backend to start, adjust tsconfig
jumpy-cat Jul 17, 2026
4d80143
rename and clean up title
jumpy-cat Jul 18, 2026
4264eda
use mock bustimes
jumpy-cat Jul 18, 2026
3e2ceb2
add delay so backend starts correctly before tests are run
jumpy-cat Jul 18, 2026
1d639c5
attempt fix of timeouts, reduce amount of logging
jumpy-cat Jul 18, 2026
2fff9bb
add more waiting for walking cache
jumpy-cat Jul 18, 2026
18ca7cd
add even more delays to fix graph not being built
jumpy-cat Jul 18, 2026
1de0112
make reminder tests work with mock bustimes
jumpy-cat Jul 18, 2026
6255474
FTP test
jumpy-cat Jul 19, 2026
8d723cc
fix missing port
jumpy-cat Jul 19, 2026
14e5642
remove existing docs, build from scratch
jumpy-cat Jul 19, 2026
d860546
adjust tsconfig again
jumpy-cat Jul 19, 2026
7353a52
Merge branch 'gh-actions' into http-api-docs
jumpy-cat Jul 20, 2026
412cb3b
be more strict with warnings when generating docs
jumpy-cat Jul 20, 2026
f3b3e15
fix docs
jumpy-cat Jul 20, 2026
733dfe3
Merge branch 'gh-actions' into http-api-docs
jumpy-cat Jul 22, 2026
747818a
feat: test stubs, output to file, flesh out tsdoc comments
jumpy-cat Jul 22, 2026
d9663d1
feat: generate and upload openapi specs in ci
jumpy-cat Jul 22, 2026
aece55a
improve testability, start adding tests, confirm ci failure when docs…
jumpy-cat Jul 23, 2026
ce516d9
feat(documented): improve error ergonomics when calling finalize
jumpy-cat Jul 23, 2026
adb40a1
feat(documented): make request errors less verbose
jumpy-cat Jul 24, 2026
b421b93
fix(documented): refine type of query & path params
jumpy-cat Jul 24, 2026
1bdc133
test(documented): complete the test suite
jumpy-cat Jul 24, 2026
7ee8ee7
fix(api): remove z.transform from /reminders/:token
jumpy-cat Jul 24, 2026
c69f3d3
fix: check if documented is enabled before tests
jumpy-cat Jul 24, 2026
e4994c1
fix(api): restrict success status codes
jumpy-cat Jul 25, 2026
0fe71f0
docs(documented): add example, add note about tuples
jumpy-cat Jul 25, 2026
78ac5c0
fix(documented): support schemas with "id" field
jumpy-cat Jul 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: CI
run-name: CI for ${{ github.ref }}
on:
push:
branches-ignore:
- "tools/*"
pull_request:
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: NPM Install
run: npm i
working-directory: ${{ github.workspace }}
- name: Test Suite
run: |
export DOCUMENTED=1
export MBUS_URL=https://mbus.bustime.mock.mb.thething.fyi/
export RIDE_URL=https://ride.bustime.mock.mb.thething.fyi/
npm start &
until curl localhost:3000 > /dev/null 2>&1
do
sleep 1 # waits for initial startup
done
sleep 10
until curl localhost:3000 > /dev/null 2>&1
do
sleep 1 # waits for the walking cache to populate
done
sleep 10 # waits for the graph/predictions to be built
npx vitest run test
# npm test
working-directory: ${{ github.workspace }}

Typecheck:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v6
# - name: Placeholder
# run: echo hi
# working-directory: ${{ github.workspace }}
- name: NPM Install
run: npm i
working-directory: ${{ github.workspace }}
- name: Typecheck
run: tsc --noEmit
working-directory: ${{ github.workspace }}

Typedoc:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: NPM Install
run: npm i
working-directory: ${{ github.workspace }}
- name: Build Docs
run: npx typedoc --entryPointStrategy expand ./src --treatWarningsAsErrors
working-directory: ${{ github.workspace }}
- name: Sync Files
uses: SamKirkland/FTP-Deploy-Action@v4.4.0
with:
server: ${{ secrets.FTP_SERVER }}
port: ${{ secrets.FTP_PORT }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ${{ github.workspace }}/docs/
server-dir: ${{ github.ref }}/typedoc/

OpenAPI:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: NPM Install
run: npm i
working-directory: ${{ github.workspace }}
- name: Build Spec
run: |
export DOCUMENTED=1
export DOCUMENTED_OUTPUT_FILE=openapi/spec.json
export DOCUMENTED_EXIT_ON_OUTPUT=1
mkdir openapi
npm start
working-directory: ${{ github.workspace }}
- name: Sync Files
uses: SamKirkland/FTP-Deploy-Action@v4.4.0
with:
server: ${{ secrets.FTP_SERVER }}
port: ${{ secrets.FTP_PORT }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ${{ github.workspace }}/openapi/
server-dir: ${{ github.ref }}/openapi/

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ node_modules/
package-lock.json
.env
.vscode/
src/assets/walkingCache.json
src/assets/walkingCache.json
*.log
/docs/
1 change: 0 additions & 1 deletion docs/.nojekyll

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/hierarchy.js

This file was deleted.

43 changes: 0 additions & 43 deletions docs/assets/highlight.css

This file was deleted.

18 changes: 0 additions & 18 deletions docs/assets/icons.js

This file was deleted.

Loading