Skip to content

ci: compile test_examples{,_small}.yml with near_workspaces::compile_project #3325

ci: compile test_examples{,_small}.yml with near_workspaces::compile_project

ci: compile test_examples{,_small}.yml with near_workspaces::compile_project #3325

name: Test Small Examples
on:
push:
branches:
- master
pull_request:
env:
RUSTFLAGS: -D warnings
jobs:
test:
runs-on: ${{ matrix.platform }}
name: "${{ matrix.platform }} ${{ matrix.toolchain }}"
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest]
toolchain: [stable]
steps:
- uses: actions/checkout@v3
- name: "${{ matrix.toolchain }} with rustfmt, clippy, and wasm32"
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
target: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v1
- name: Test lockable-fungible-token
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/lockable-fungible-token/Cargo.toml --workspace
- name: Test status-message
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/status-message/Cargo.toml --workspace
- name: Test mission-control
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/mission-control/Cargo.toml --workspace
- name: Test test-contract
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/test-contract/Cargo.toml --workspace