chore(deps): update swc monorepo #413
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUST_LOG: "debug" | |
DIFF: 0 | |
RUST_MIN_STACK: 4194304 | |
NODE_ENV: "development" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
target: wasm32-unknown-unknown | |
- name: Cache cargo registry | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
.cargo-cache/ | |
target | |
key: ${{ runner.os }}-${{ hashFiles('Cargo.lock') }} | |
- name: Run cargo check for all targets | |
run: cargo check --color always --all --all-targets | |
- run: cargo test | |
# test in node | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".node-version" | |
cache: "pnpm" | |
- run: pnpm i --ignore-scripts --frozen-lockfile | |
- run: pnpm test:debug | |
latest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
target: wasm32-unknown-unknown | |
- name: Cache cargo registry | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
.cargo-cache/ | |
target | |
key: ${{ runner.os }}-${{ hashFiles('Cargo.lock') }} | |
- name: Run cargo check for all targets | |
run: cargo check --color always --all --all-targets | |
- run: cargo test | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".node-version" | |
- run: pnpm add -D --ignore-scripts @swc/core@latest @swc/jest@latest | |
- run: pnpm test:debug |