Skip to content

build(deps-dev): bump the minor-and-patch group with 7 updates (#40) #78

build(deps-dev): bump the minor-and-patch group with 7 updates (#40)

build(deps-dev): bump the minor-and-patch group with 7 updates (#40) #78

Workflow file for this run

name: CI
on:
pull_request:
branches: [master]
push:
branches: [master]
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
cache: "npm"
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: wasm
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Install Node dependencies
run: npm ci
- name: Build WASM
run: npm run wasm
- name: Run TypeScript unit tests
run: npm test
- name: Run Rust unit tests
run: npm run test:rust
- name: TypeScript type check
run: npm run build
- name: Verify build artifacts
run: |
if [ ! -f main.js ]; then
echo "Error: main.js not found"
exit 1
fi
if [ ! -f obsidian_sync_wasm_bg.wasm ]; then
echo "Error: WASM file not found"
exit 1
fi
echo "✓ All build artifacts present"
- name: Check bundle size
run: |
echo "Build artifact sizes:"
ls -lh main.js obsidian_sync_wasm_bg.wasm