Skip to content

TESTCOV env setup. #419

TESTCOV env setup.

TESTCOV env setup. #419

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
tests:
strategy:
matrix:
platform: [ubuntu-22.04, macos-13]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.17.0
- name: Setup dependencies
if: startsWith(matrix.platform, 'macos')
run: |
brew install llvm@14
echo /usr/local/opt/llvm@14/bin >> $GITHUB_PATH
- name: Build
env:
IS_GITHUB_ACTION: true
run: cargo +stable build --workspace --target wasm32-unknown-unknown --release
- name: Run Cargo tests
env:
IS_GITHUB_ACTION: true
run: cargo test --workspace -- --nocapture
- name: Run Ava tests
env:
IS_GITHUB_ACTION: true
run: cd sputnikdao2 && sh test.sh