File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - master
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v6
15+
16+ - name : Install Bun
17+ uses : oven-sh/setup-bun@v2
18+ with :
19+ bun-version : 1.3.14
20+ env :
21+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22+
23+ - name : Install Rust
24+ uses : actions-rust-lang/setup-rust-toolchain@v1
25+ with :
26+ toolchain : stable
27+ target : wasm32-unknown-unknown
28+
29+ - name : Install wasm-pack
30+ run : cargo install wasm-pack --locked
31+
32+ - name : Set stable toolchain
33+ run : cd wasm && rustup override set stable && rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu && cd ..
34+
35+ - name : Install dependencies
36+ run : bun install --frozen-lockfile
37+
38+ - name : Rust tests
39+ run : bun run wasm:test || exit 1
40+
41+ - name : TypeScript tests
42+ run : bun run test || exit 1
43+
44+ - name : Build
45+ run : bun run build || exit 1
You can’t perform that action at this time.
0 commit comments