-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.72 KB
/
Copy pathtest.yml
File metadata and controls
48 lines (45 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: test
on:
push:
branches: [main]
pull_request:
jobs:
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
- run: cargo clippy --workspace --all-targets -- -D warnings
- run: cargo test --workspace --all-targets
node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with: { version: 9 }
- uses: actions/setup-node@v4
with: { node-version: 20, cache: pnpm }
- run: pnpm install --frozen-lockfile
# Build the viewer dist first — report-ui and visual depend on it via
# `workspace:*`, and the viewer's own `lint`/`test` need its type graph.
- run: pnpm -F @splatforge/viewer run build
# Lint/test the JS workspaces, but skip splatforge-visual: its `test`
# script is Playwright (covered by the visual workflow) and needs a
# built viewer + browsers + CLI binary.
- run: pnpm --filter='!splatforge-visual' -r --if-present run lint
- run: pnpm --filter='!splatforge-visual' -r --if-present run test
cli-smoke:
runs-on: ubuntu-latest
needs: [rust]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo build --release -p splatforge-cli
- run: ./target/release/splatforge analyze fixtures/tiny/basic_binary.ply
- run: ./target/release/splatforge optimize fixtures/tiny/basic_binary.ply --preset web-mobile --out /tmp/scene.gltf
- run: ./target/release/splatforge inspect /tmp/scene.gltf