Skip to content

Commit 081c3c2

Browse files
committed
[jlarabie/unreal-sdk-initial]: Merge remote-tracking branch 'origin/master' into jlarabie/unreal-sdk-initial
2 parents fba4744 + 2c74f73 commit 081c3c2

728 files changed

Lines changed: 17666 additions & 10117 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/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/crates/core/src/db/datastore/traits.rs @cloutiertyler
22
/rust-toolchain.toml @cloutiertyler
33
/.github/CODEOWNERS @cloutiertyler
4+
LICENSE @cloutiertyler
45
LICENSE.txt @cloutiertyler
6+
/licenses/ @cloutiertyler
57
/crates/client-api-messages/src/websocket.rs @centril @gefjon
68

79
/crates/cli/src/ @bfops @cloutiertyler @jdetter

.github/workflows/ci.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,23 +254,46 @@ jobs:
254254
GIT_REF="${{ github.ref }}"
255255
fi
256256
echo "GIT_REF=${GIT_REF}" >>"$GITHUB_ENV"
257+
257258
- name: Checkout sources
258259
uses: actions/checkout@v4
259260
with:
260261
ref: ${{ env.GIT_REF }}
262+
263+
- name: Set up Node.js
264+
uses: actions/setup-node@v4
265+
with:
266+
node-version: 18
267+
268+
- uses: pnpm/action-setup@v4
269+
with:
270+
run_install: true
271+
272+
- name: Get pnpm store directory
273+
shell: bash
274+
working-directory: sdks/typescript
275+
run: |
276+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
277+
278+
- uses: actions/cache@v4
279+
name: Setup pnpm cache
280+
with:
281+
path: ${{ env.STORE_PATH }}
282+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
283+
restore-keys: |
284+
${{ runner.os }}-pnpm-store-
285+
261286
- uses: dsherret/rust-toolchain-file@v1
287+
262288
- name: Check for docs change
263289
run: |
264290
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
291+
pnpm format
270292
git status
271293
if git diff --exit-code HEAD; then
272294
echo "No docs changes detected"
273295
else
274296
echo "It looks like the CLI docs have changed:"
275297
exit 1
276298
fi
299+

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

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,35 @@ jobs:
1818
- name: Set up Node.js
1919
uses: actions/setup-node@v3
2020
with:
21-
node-version: '16'
21+
node-version: '18'
22+
23+
- uses: pnpm/action-setup@v4
24+
with:
25+
run_install: true
26+
27+
- name: Get pnpm store directory
28+
working-directory: sdks/typescript
29+
shell: bash
30+
run: |
31+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
32+
33+
- uses: actions/cache@v4
34+
name: Setup pnpm cache
35+
with:
36+
path: ${{ env.STORE_PATH }}
37+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
38+
restore-keys: |
39+
${{ runner.os }}-pnpm-store-
2240
2341
- name: Install dependencies
2442
working-directory: docs
2543
run: |
26-
npm install
44+
pnpm install
45+
46+
- name: Lint
47+
working-directory: docs
48+
run: |
49+
pnpm lint
2750
2851
- name: Backup existing nav.js
2952
working-directory: docs
@@ -33,12 +56,12 @@ jobs:
3356
- name: Build nav.ts
3457
working-directory: docs
3558
run: |
36-
npm run build
59+
pnpm build
3760
3861
- name: Compare generated nav.js with original nav.js
3962
working-directory: docs
4063
run: |
41-
diff -q docs/nav.js docs/nav.js.original || (echo "Generated nav.js differs from committed version. Run 'npm run build' and commit the updated file." && exit 1)
64+
diff -q docs/nav.js docs/nav.js.original || (echo "Generated nav.js differs from committed version. Run 'pnpm build' and commit the updated file." && exit 1)
4265
4366
# We do this after checking that nav.js matches nav.ts, to avoid confusing error messages if an author updates one but not the other.
4467
# If the .ts and .js are in sync, it doesn't matter which one we check against here.

.github/workflows/typescript-lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222

2323
- uses: pnpm/action-setup@v4
2424
with:
25-
version: 9.7
2625
run_install: true
2726

2827
- name: Get pnpm store directory

.github/workflows/typescript-test.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
merge_group:
99

1010
jobs:
11-
compile-and-test:
11+
build-and-test:
1212
runs-on: ubuntu-latest
1313

1414
steps:
@@ -22,7 +22,6 @@ jobs:
2222

2323
- uses: pnpm/action-setup@v4
2424
with:
25-
version: 9.7
2625
run_install: true
2726

2827
- name: Get pnpm store directory
@@ -38,12 +37,20 @@ jobs:
3837
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
3938
restore-keys: |
4039
${{ runner.os }}-pnpm-store-
40+
41+
- name: Build module library
42+
working-directory: crates/bindings-typescript
43+
run: pnpm build
44+
45+
- name: Run module library tests
46+
working-directory: crates/bindings-typescript
47+
run: pnpm test
4148

42-
- name: Compile
49+
- name: Build SDK
4350
working-directory: sdks/typescript
44-
run: pnpm compile
51+
run: pnpm build
4552

46-
- name: Run sdk tests
53+
- name: Run SDK tests
4754
working-directory: sdks/typescript/packages/sdk
4855
run: pnpm test
4956

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ node_modules
22
pnpm-lock.yaml
33
dist
44
target
5-
/.github
5+
.github
File renamed without changes.

0 commit comments

Comments
 (0)