Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
70 changes: 70 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
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 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/
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules/
package-lock.json
.env
.vscode/
src/assets/walkingCache.json
src/assets/walkingCache.json
/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