Skip to content

Commit 8ad4ba0

Browse files
committed
rust
1 parent bf17575 commit 8ad4ba0

34 files changed

+3268
-1
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,25 @@ jobs:
1111
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
1212
with:
1313
bun-version: 1.3.12
14+
- uses: dtolnay/rust-toolchain@stable
15+
with:
16+
targets: wasm32-unknown-unknown
17+
components: rustfmt
18+
19+
- uses: taiki-e/cache-cargo-install-action@34ce5120836e5f9f1508d8713d7fdea0e8facd6f # v3.0.1
20+
with:
21+
tool: cargo-nextest
1422

1523
- run: bun install --frozen-lockfile
1624

25+
- run: cargo nextest run
26+
working-directory: cargo
27+
28+
- run: cargo fmt --check
29+
working-directory: cargo
30+
31+
- run: bun wasm-pack build cargo/snk-js --out-dir ../../packages/snk-js --dev --target nodejs
32+
1733
- run: npm run type
1834
- run: npm run lint
1935
- run: bun test

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ build
66
.env
77
.wrangler
88
.dev.vars
9-
.DS_Store
9+
.DS_store
10+
target
11+
packages/snk-js/*
12+
!packages/snk-js/README.md
13+
!packages/snk-js/package.json
14+
!packages/snk-js/__tests__

0 commit comments

Comments
 (0)