Skip to content

Fix formatting

Fix formatting #140

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --target=wasm32-unknown-unknown
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --target=x86_64-unknown-linux-gnu
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Test on Chrome
run: wasm-pack test --headless --chrome
- name: Test on Firefox
run: wasm-pack test --headless --firefox
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --target=wasm32-unknown-unknown