Skip to content

Merge pull request #82 from Near-One/chore-adjust-rust-toolchain #466

Merge pull request #82 from Near-One/chore-adjust-rust-toolchain

Merge pull request #82 from Near-One/chore-adjust-rust-toolchain #466

Workflow file for this run

---
on:
push:
branches:
- master
- develop
pull_request:
name: Tests
jobs:
test:
name: Test suite (mainnet)
runs-on: ubuntu-latest
steps:
- name: Clone the repository
uses: actions/checkout@v4
- name: Install cargo-make
run: cargo make -V || cargo install cargo-make
- name: Install sandbox
run: |
if [[ ! -f ${{ env.NEAR_SANDBOX_BIN_PATH }} ]]; then
rm -rf nearcore
git clone --depth 1 --branch 1.35.0 https://github.com/near/nearcore
cd nearcore
make sandbox-release
cp target/release/near-sandbox ${{ env.NEAR_SANDBOX_BIN_PATH }}
cd ../
rm -rf nearcore
fi
- name: Test mainnet
run: cargo make --profile mainnet test
env:
NEAR_SANDBOX_BIN_PATH: /usr/local/bin/near-sandbox
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0