Skip to content

Workflow file for this run

name: Unit Test (rust)
on:
workflow_call:
inputs:
contract:
required: true
type: string
defaults:
run:
working-directory: smart-contracts/contracts
jobs:
test-rust:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Get git diff
uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.rs
**/Cargo.toml

Check failure on line 25 in .github/workflows/unittest_rust.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/unittest_rust.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
- name: Install Rust
if: env.GIT_DIFF
uses: dtolnay/rust-toolchain@stable
- name: Run unit-tests
if: env.GIT_DIFF
run: cd ${{ inputs.contract }} && cargo unit-test