docs: add Tauri + Any Store example article #84
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| node: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18, 20, 22] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm lint | |
| - run: pnpm -r typecheck | |
| - run: pnpm -r build | |
| - run: pnpm docs:api | |
| - run: pnpm -r test | |
| - name: E2E multi-window sync tests | |
| run: pnpm --filter state-sync test -- e2e-multi-window | |
| - name: Smoke-import (ESM + CJS) | |
| run: | | |
| node -e "import('./packages/core/dist/index.js').then(m => console.log('core ESM OK:', Object.keys(m)))" | |
| node -e "const m = require('./packages/core/dist/index.cjs'); console.log('core CJS OK:', Object.keys(m))" | |
| node -e "import('./packages/persistence/dist/index.js').then(m => console.log('persistence ESM OK:', Object.keys(m)))" | |
| node -e "const m = require('./packages/persistence/dist/index.cjs'); console.log('persistence CJS OK:', Object.keys(m))" | |
| node -e "import('./packages/pinia/dist/index.js').then(m => console.log('pinia ESM OK:', Object.keys(m)))" | |
| node -e "const m = require('./packages/pinia/dist/index.cjs'); console.log('pinia CJS OK:', Object.keys(m))" | |
| node -e "import('./packages/tauri/dist/index.js').then(m => console.log('tauri ESM OK:', Object.keys(m)))" | |
| node -e "const m = require('./packages/tauri/dist/index.cjs'); console.log('tauri CJS OK:', Object.keys(m))" | |
| node -e "import('./packages/redux/dist/index.js').then(m => console.log('redux ESM OK:', Object.keys(m)))" | |
| node -e "const m = require('./packages/redux/dist/index.cjs'); console.log('redux CJS OK:', Object.keys(m))" | |
| node -e "import('./packages/zustand/dist/index.js').then(m => console.log('zustand ESM OK:', Object.keys(m)))" | |
| node -e "const m = require('./packages/zustand/dist/index.cjs'); console.log('zustand CJS OK:', Object.keys(m))" | |
| node -e "import('./packages/valtio/dist/index.js').then(m => console.log('valtio ESM OK:', Object.keys(m)))" | |
| node -e "const m = require('./packages/valtio/dist/index.cjs'); console.log('valtio CJS OK:', Object.keys(m))" | |
| node -e "import('./packages/svelte/dist/index.js').then(m => console.log('svelte ESM OK:', Object.keys(m)))" | |
| node -e "const m = require('./packages/svelte/dist/index.cjs'); console.log('svelte CJS OK:', Object.keys(m))" | |
| node -e "import('./packages/jotai/dist/index.js').then(m => console.log('jotai ESM OK:', Object.keys(m)))" | |
| node -e "const m = require('./packages/jotai/dist/index.cjs'); console.log('jotai CJS OK:', Object.keys(m))" | |
| node -e "import('./packages/mobx/dist/index.js').then(m => console.log('mobx ESM OK:', Object.keys(m)))" | |
| node -e "const m = require('./packages/mobx/dist/index.cjs'); console.log('mobx CJS OK:', Object.keys(m))" | |
| node -e "import('./packages/vue/dist/index.js').then(m => console.log('vue ESM OK:', Object.keys(m)))" | |
| node -e "const m = require('./packages/vue/dist/index.cjs'); console.log('vue CJS OK:', Object.keys(m))" | |
| rust: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: crates/state-sync | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - run: cargo fmt --check | |
| - run: cargo clippy --all-targets -- -D warnings | |
| - run: cargo test |