Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- main

permissions:
contents: read

env:
RUSTFLAGS: '-Dwarnings'

Expand All @@ -19,13 +22,10 @@ jobs:
uses: actions/checkout@v5

- name: Set up Rust toolchain
run: rustup toolchain install stable --no-self-update --profile default --target wasm32-unknown-unknown

- name: Set up Rust cache
uses: swatinem/rust-cache@v2
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-on-failure: true
save-if: ${{ github.ref == 'refs/heads/main' }}
components: clippy, rustfmt
target: wasm32-unknown-unknown

- name: Install Cargo packages
run: cargo install wasm-pack
Expand All @@ -34,10 +34,10 @@ jobs:
run: cargo fmt --all --check

- name: Lint
run: cargo clippy --all-features
run: cargo clippy --all-features --locked

- name: Test
run: cargo test --all-features
run: cargo test --all-features --locked --release

- name: Test in Browser
run: wasm-pack test --headless --release --chrome --firefox
Expand Down
22 changes: 6 additions & 16 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,10 @@ jobs:
- uses: actions/checkout@v5

- name: Set up Rust toolchain
run: |
rustup toolchain install stable --no-self-update --profile minimal
rustup target add wasm32-unknown-unknown

- name: Set up Rust cache
uses: swatinem/rust-cache@v2
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-on-failure: true
save-if: ${{ github.ref == 'refs/heads/main' }}
components: clippy, rustfmt
target: wasm32-unknown-unknown

- name: Install Cargo Binary Install
uses: cargo-bins/cargo-binstall@main
Expand All @@ -47,15 +42,10 @@ jobs:
fetch-depth: 0

- name: Set up Rust toolchain
run: |
rustup toolchain install stable --no-self-update --profile minimal
rustup target add wasm32-unknown-unknown

- name: Set up Rust cache
uses: swatinem/rust-cache@v2
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-on-failure: true
save-if: ${{ github.ref == 'refs/heads/main' }}
components: clippy, rustfmt
target: wasm32-unknown-unknown

- name: Install Cargo Binary Install
uses: cargo-bins/cargo-binstall@main
Expand Down
Loading