Skip to content

Commit

Permalink
ci: build neard-sandbox corresponding release version (#950)
Browse files Browse the repository at this point in the history
## Description

The motivation for adding this PR is the potentially incontinent
behaviour of the Aurora contract on-chain and in our tests, due to the
outdated version of the `neard-sandbox` that could be used in the
`near-workspaces`. The PR adds a script that builds an actual version of
the `neard-sandbox` for each network (mainnet and testnet) for use in
the scheduled tests in the Github CI. The PR fixes the
`test_exit_to_near_wnear*` tests that started failing after the
near-workspace was bumped to 0.12 (near-sandbox 2.1.1).
  • Loading branch information
aleksuss committed Sep 4, 2024
1 parent 880b2c1 commit 00948af
Show file tree
Hide file tree
Showing 6 changed files with 1,328 additions and 1,192 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/scheduled_lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ name: Scheduled checks
jobs:
tests:
name: Run tests
runs-on: [self-hosted, heavy]
runs-on: [ self-hosted, heavy ]
strategy:
fail-fast: false
matrix:
profile: [ mainnet, testnet, mainnet-silo, testnet-silo ]
steps:
- name: Potential broken submodules fix
run: |
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
- name: Clone the repository
uses: actions/checkout@v4
- name: Test mainnet
run: cargo make --profile mainnet test-flow
- name: Test testnet
run: cargo make --profile testnet test-flow
- name: Test mainnet silo
run: cargo make --profile mainnet-silo test-flow
- name: Test testnet silo
run: cargo make --profile testnet-silo test-flow
- name: Build actual neard-sandbox
run: scripts/build-neard-sandbox.sh ${{ matrix.profile }}
- name: Test ${{ matrix.profile }}
run: cargo make --profile ${{ matrix.profile }} test-flow

checks:
name: Run checks
runs-on: [self-hosted, heavy]
runs-on: [ self-hosted, heavy ]
steps:
- name: Potential broken submodules fix
run: |
Expand Down
Loading

0 comments on commit 00948af

Please sign in to comment.