forked from Echo-Mirror-Butler/echomirror-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1.17 KB
/
Copy pathjs-ci.yml
File metadata and controls
31 lines (29 loc) · 1.17 KB
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
name: JS CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
js-checks:
name: Lint, Typecheck, Test & Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run lint --workspaces --if-present
- run: npm run build -w packages/js/core
- run: npm run typecheck --workspaces --if-present
# @echomirror/wasm's test suite runs against its compiled wasm-pack
# output (wasm-web/, wasm-node/), which needs a Rust toolchain to
# produce — that full pipeline (build:wasm -> build -> test ->
# test:browser) runs in rust-ci.yml's wasm-build job instead. lint,
# typecheck, and build above still cover it: the "#wasm-binding"
# import resolves against its own ambient .d.ts for type-checking,
# with no dependency on the wasm-pack artifacts existing.
- run: npm run test --if-present --workspace=packages/js/core --workspace=packages/js/mood --workspace=packages/js/react --workspace=packages/js/stellar
- run: npm run build --workspaces --if-present