@@ -342,24 +342,8 @@ jobs:
342342 - uses : dsherret/rust-toolchain-file@v1
343343 - name : Set default rust toolchain
344344 run : rustup default $(rustup show active-toolchain | cut -d' ' -f1)
345- - name : Set up Python env
346- run : |
347- test -d venv || python3 -m venv venv
348- venv/bin/pip3 install argparse toml
349345 - name : Run checks
350- run : |
351- set -ueo pipefail
352- FAILED=0
353- ROOTS=(spacetimedb spacetimedb-sdk)
354- CRATES=$(venv/bin/python3 tools/find-publish-list.py --recursive --directories --quiet "${ROOTS[@]}")
355- for crate_dir in $CRATES; do
356- if ! venv/bin/python3 tools/crate-publish-checks.py "${crate_dir}"; then
357- FAILED=$(( $FAILED + 1 ))
358- fi
359- done
360- if [ $FAILED -gt 0 ]; then
361- exit 1
362- fi
346+ run : cargo ci publish-checks
363347
364348 update :
365349 name : Test spacetimedb-update flow (${{ matrix.target }})
@@ -1178,13 +1162,12 @@ jobs:
11781162 restore-keys : |
11791163 ${{ runner.os }}-pnpm-store-
11801164
1181- - name : Install dependencies
1182- working-directory : docs
1183- run : pnpm install
1165+ - uses : dsherret/rust-toolchain-file@v1
1166+ - name : Set default rust toolchain
1167+ run : rustup default $(rustup show active-toolchain | cut -d' ' -f1)
11841168
11851169 - name : Docusaurus build
1186- working-directory : docs
1187- run : pnpm build
1170+ run : cargo ci docs
11881171
11891172 typescript-test :
11901173 name : TypeScript - Tests
@@ -1216,14 +1199,6 @@ jobs:
12161199 restore-keys : |
12171200 ${{ runner.os }}-pnpm-store-
12181201
1219- - name : Build module library and SDK
1220- working-directory : crates/bindings-typescript
1221- run : pnpm build
1222-
1223- - name : Run module library and SDK tests
1224- working-directory : crates/bindings-typescript
1225- run : pnpm test
1226-
12271202 # - name: Extract SpacetimeDB branch name from file
12281203 # id: extract-branch
12291204 # run: |
@@ -1293,46 +1268,8 @@ jobs:
12931268 # Clear any existing information
12941269 spacetime server clear -y
12951270
1296- - name : Generate client bindings
1297- working-directory : templates/chat-react-ts
1298- run : |
1299- pnpm generate
1300-
1301- - name : Check for changes
1302- working-directory : templates/chat-react-ts
1303- run : |
1304- "${GITHUB_WORKSPACE}"/tools/check-diff.sh src/module_bindings || {
1305- echo "Error: Bindings are dirty. Please generate bindings again and commit them to this branch."
1306- exit 1
1307- }
1308-
1309- # - name: Start SpacetimeDB
1310- # run: |
1311- # spacetime start &
1312- # disown
1313-
1314- # - name: Publish module to SpacetimeDB
1315- # working-directory: SpacetimeDB/templates/quickstart-chat-typescript/spacetimedb
1316- # run: |
1317- # spacetime logout && spacetime login --server-issued-login local
1318- # spacetime publish -s local quickstart-chat -c -y
1319-
1320- # - name: Publish module to SpacetimeDB
1321- # working-directory: SpacetimeDB/templates/quickstart-chat-typescript/spacetimedb
1322- # run: |
1323- # spacetime logs quickstart-chat
1324-
1325- - name : Check that quickstart-chat builds
1326- working-directory : templates/chat-react-ts
1327- run : pnpm build
1328-
1329- - name : Check that templates build
1330- working-directory : templates/
1331- run : pnpm -r --filter "./**" run build
1332-
1333- - name : Check that subdirectories build
1334- working-directory : crates/bindings-typescript
1335- run : pnpm -r --filter "./**" run build
1271+ - name : Run TypeScript tests
1272+ run : cargo ci typescript-test
13361273
13371274 # - name: Run quickstart-chat tests
13381275 # working-directory: examples/quickstart-chat
0 commit comments