Skip to content

Adjusting CI files #399

Adjusting CI files

Adjusting CI files #399

Workflow file for this run

name: SquireSDK CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main, development ]
env:
CARGO_TERM_COLOR: always
jobs:
squire_sdk_build_tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: hecrj/setup-rust-action@v2
with:
rust-version: stable
components: rustfmt
- uses: taiki-e/install-action@cargo-hack
- uses: actions/checkout@v4
- run: cargo hack build --feature-powerset --exclude-features deck_sites --no-dev-deps --package squire_sdk --verbose
- run: cargo hack test --package squire_sdk --feature-powerset --exclude-features deck_sites --verbose
- run: cargo doc --package squire_sdk --all-features --verbose
squire_lib_wasm_tests:
name: Wasm Tests
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v2
with:
rust-version: stable
targets: wasm32-unknown-unknown
- uses: actions/checkout@v4
- run: cargo build --package squire_sdk --features=client --target=wasm32-unknown-unknown --verbose
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: wasm-pack test --headless --chrome --firefox ./squire_sdk/ --features=client --verbose