Skip to content

feat!: remove Transport #2371

feat!: remove Transport

feat!: remove Transport #2371

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-12, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-1
- name: Install wasm-pack and chromedriver
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
sudo apt-get install -y chromium-chromedriver
- name: Run Tests
shell: bash
run: |
# Test all features and no features for each package.
for p in $(cargo metadata --no-deps --format-version 1 | jq -r .packages[].manifest_path); do
pushd $(dirname $p)
cargo test --all-targets --all-features
cargo test --all-targets --no-default-features
popd
done
env:
RUST_BACKTRACE: 1
- name: Run Tests (WASM)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
CARGO_TARGET_DIR=target/wasm wasm-pack test --chrome --headless ic-agent --features wasm-bindgen
aggregate:
name: test:required
runs-on: ubuntu-latest
if: ${{ always() }}
needs: test
steps:
- name: Check test result
if: ${{ needs.test.result != 'success' }}
run: exit 1