Skip to content

Introducing new methods for instance (#16) #31

Introducing new methods for instance (#16)

Introducing new methods for instance (#16) #31

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
name: Continuous integration
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo check
- run: cargo check --no-default-features --features tokio-util
- run: cargo check --no-default-features --features tokio-test-util
- run: cargo check --no-default-features --features tokio
- run: cargo check --no-default-features --features serde
- run: cargo check --no-default-features
unittest:
name: Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
- run: cargo test --no-default-features --features tokio-util
- run: cargo test --no-default-features --features tokio-test-util
- run: cargo test --no-default-features --features tokio
- run: cargo test --no-default-features --features serde
- run: cargo test --no-default-features
inttestbrowser:
name: Integration Test Browser
runs-on: ubuntu-latest
env:
RUSTFLAGS: "--cfg browser"
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: wasm-pack test --headless --firefox --features tokio-test-util,serde
- run: wasm-pack test --headless --chrome --features tokio-test-util,serde
inttestnode:
name: Integration Test Node
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: wasm-pack test --node --features tokio-test-util,serde
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --all-features -- -D warnings