Skip to content

Commit db8d53d

Browse files
authored
Merge branch 'master' into jdetter/login-and-resume-gameplay
2 parents bdac6ba + 37c64c7 commit db8d53d

481 files changed

Lines changed: 1958 additions & 1382 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/bottest.yml

Lines changed: 0 additions & 133 deletions
This file was deleted.

.github/workflows/bottest_tracing_fix.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,3 +236,41 @@ jobs:
236236
# happens very frequently on the `macos-runner`, but we haven't seen it on any others).
237237
cargo run --features github-token-auth --target ${{ matrix.target }} -p spacetimedb-update -- self-install --root-dir="${ROOT_DIR}" --yes
238238
"${ROOT_DIR}"/spacetime --root-dir="${ROOT_DIR}" help
239+
240+
cli_docs:
241+
name: Check CLI docs
242+
permissions: read-all
243+
runs-on: ubuntu-latest
244+
steps:
245+
- name: Find Git ref
246+
env:
247+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
248+
shell: bash
249+
run: |
250+
PR_NUMBER="${{ github.event.inputs.pr_number || null }}"
251+
if test -n "${PR_NUMBER}"; then
252+
GIT_REF="$( gh pr view --repo clockworklabs/SpacetimeDB $PR_NUMBER --json headRefName --jq .headRefName )"
253+
else
254+
GIT_REF="${{ github.ref }}"
255+
fi
256+
echo "GIT_REF=${GIT_REF}" >>"$GITHUB_ENV"
257+
- name: Checkout sources
258+
uses: actions/checkout@v4
259+
with:
260+
ref: ${{ env.GIT_REF }}
261+
- uses: dsherret/rust-toolchain-file@v1
262+
- name: Check for docs change
263+
run: |
264+
cargo run --features markdown-docs -p spacetimedb-cli > docs/docs/cli-reference.md
265+
cd docs
266+
# This is needed because our website doesn't render markdown quite properly.
267+
# See the README in docs for more details.
268+
sed -i'' -E 's!^(##) `(.*)`$!\1 \2!' docs/cli-reference.md
269+
sed -i'' -E 's!^(######) \*\*(.*)\*\*$!\1 <b>\2</b>!' docs/cli-reference.md
270+
git status
271+
if git diff --exit-code HEAD; then
272+
echo "No docs changes detected"
273+
else
274+
echo "It looks like the CLI docs have changed:"
275+
exit 1
276+
fi

.github/workflows/csharp-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
jobs:
1010
unity-testsuite:
1111
runs-on: ubuntu-latest
12+
# Cancel any previous testsuites running on the same PR and/or ref.
13+
concurrency:
14+
group: unity-test-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
timeout-minutes: 30
1217
steps:
1318
- name: Checkout repository
1419
uses: actions/checkout@v4

.github/workflows/docs-validate-nav-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docs - Validate nav.ts Matches nav.js
1+
name: Docs - Validate nav.ts
22

33
on:
44
pull_request:

.github/workflows/pr-only-ci.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- master
8+
merge_group:
89

910
jobs:
1011
build:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- master
77
pull_request:
8+
merge_group:
89

910
jobs:
1011
compile-and-test:

0 commit comments

Comments
 (0)