Skip to content

Update Node.js to v22 #139

Update Node.js to v22

Update Node.js to v22 #139

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request: {}
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v4
- uses: pnpm/[email protected]
with:
version: 7.13.6
- name: install dependencies
run: pnpm install
- name: lint
run: pnpm run lint
cargo_check:
name: "Cargo Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: rust-toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
- name: cargo check
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: check
rustfmt:
name: "Rust Format"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: rust-toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
components: rustfmt
- name: fmt
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: fmt
args: --all -- --check
clippy:
name: "Clippy"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: rust-toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
components: clippy
- name: clippy
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: clippy
test:
name: "Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: rust-toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
components: clippy
- name: install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: test
run: wasm-pack test --headless --chrome