fix: github actions #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
repository_dispatch: | |
types: [tests-report] | |
push: | |
jobs: | |
unit-tests: | |
name: Unit tests | |
strategy: | |
matrix: | |
platform: [ubuntu-latest] # , windows-latest, macos-latest] | |
runs-on: ${{ matrix.platform }} | |
env: | |
RUST_BACKTRACE: 1 | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
- name: Run integration test | |
run: cd integration-tests && cargo run --example integration-tests | |
- name: Run unit tests | |
run: > | |
cd market-contract && cargo test | |
cd ../nft-contract && cargo test | |
cd ../nft-contract-approval && cargo test | |
cd ../nft-contract-basic && cargo test | |
cd ../nft-contract-events && cargo test | |
cd ../nft-contract-royalty && cargo test | |
cd ../nft-contract-skeleton && cargo test | |
cd ../nft-series && cargo test |