Merge pull request #24 from near-examples/workspaces-migration #73
This file contains hidden or 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: 01 - Tests Contract RS | |
| on: push | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| platform: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install system dependencies | |
| if: matrix.platform == 'ubuntu-latest' | |
| run: sudo apt-get update && sudo apt-get install -y libudev-dev | |
| - name: Install cargo-near | |
| run: cargo install cargo-near | |
| - name: Setup Rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: 1.86 | |
| cache: false | |
| - name: Run tests | |
| working-directory: ./contract-rs/01-basic-auction | |
| run: cargo test --verbose |