-
Notifications
You must be signed in to change notification settings - Fork 34
62 lines (62 loc) · 1.82 KB
/
actions.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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/install-llvm-action@v1.9.0
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