release 0.3.2 #55
This file contains 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: build & test | |
on: | |
push: | |
paths-ignore: | |
- "**.md" | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
jobs: | |
build: | |
permissions: | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
# checkout repo | |
- uses: actions/checkout@v4 | |
# rust setup | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
components: clippy, rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- uses: extractions/setup-just@v1 | |
- name: install wasm-pack | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
# clang is needed to compile sqlite | |
- name: Install LLVM and Clang | |
uses: KyleMayes/[email protected] | |
with: | |
version: 11 | |
# node setup | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: "8" | |
run_install: true | |
# build, test, and package sqlsync | |
- name: Build all | |
run: just build | |
- name: Lint & Format | |
run: just lint | |
- name: Unit tests | |
run: just unit-test | |
- name: end-to-end-local | |
run: just test-end-to-end-local | |
- name: end-to-end-local-net | |
run: just test-end-to-end-local-net | |
- name: test sqlsync-reducer | |
run: just test-sqlsync-reducer | |
- name: build sqlsync js packages | |
run: just package-sqlsync-react package-sqlsync-worker package-sqlsync-solid-js | |
- name: build frontend | |
run: cd demo/frontend && pnpm build | |
- name: build cloudflare backend | |
run: cd demo/cloudflare-backend && cargo install -q worker-build && worker-build | |
- name: build examples | |
run: cd examples/guestbook-react && pnpm build |