Skip to content

Commit

Permalink
Refactor: WasmConfig, Layer implementation (#11)
Browse files Browse the repository at this point in the history
* feat: add github test ci

* fix: update test action
- add wasm-pack-action
- comment unused crate in tests for lint

* fix: wasm-pack config

* add a few examples

* refactor: WASMLayer -> WasmLayer; WASMLayerConfig -> WasmLayerConfig

Semantically cleaner, it's a nit

* chore: add docs, remove some nesting

* refactor: use ConsoleConfig over two booleans in config

- Denest Layer::on_event

* feat: show/hide origin

* update version to 1.0.0-alpha

* remove commented code in test
  • Loading branch information
dsgallups authored Dec 18, 2024
1 parent ad770d7 commit a2595d8
Show file tree
Hide file tree
Showing 9 changed files with 520 additions and 176 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test

on:
pull_request: {}

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets --all-features -- -D warnings

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: jetli/[email protected]
- run: wasm-pack test --chrome --headless
244 changes: 223 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a2595d8

Please sign in to comment.