mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
* Initial plan * Re-enable wasm-pack test and update Node.js to v22 Co-authored-by: anakrish <35780660+anakrish@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: anakrish <35780660+anakrish@users.noreply.github.com>
40 lines
948 B
YAML
40 lines
948 B
YAML
name: bindings/wasm
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
schedule:
|
|
# Run at 8:00 AM every day
|
|
- cron: "0 8 * * *"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Rust toolchain
|
|
uses: ./.github/actions/toolchains/rust
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Install wasmlpack
|
|
run: cargo install wasm-pack
|
|
|
|
- name: Test wasm binding
|
|
run: |
|
|
cd bindings/wasm
|
|
cargo fetch
|
|
cargo clippy --all-targets --no-deps -- -Dwarnings
|
|
wasm-pack build --target nodejs --release
|
|
wasm-pack test --release --node
|
|
node test.js
|