ci: compile test_examples{,_small}.yml
with near_workspaces::compile_project
#3341
Workflow file for this run
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: Test Small Examples | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
RUSTFLAGS: -D warnings | |
jobs: | |
test: | |
runs-on: ${{ matrix.platform }} | |
name: "${{ matrix.example }} - ${{ matrix.platform }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [ubuntu-latest, macos-latest] | |
toolchain: [stable] | |
example: [ | |
lockable-fungible-token, | |
status-message, | |
mission-control, | |
test-contract, | |
] | |
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 | |
with: | |
working-directory: ./examples/${{ matrix.example }} | |
- name: Test | |
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/${{ matrix.example }}/Cargo.toml --workspace |