Deploy to Lisk #4363
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
# - Run (Foundry) Unit Test Suite | |
# - will make sure that all tests pass | |
name: Run Unit Tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
push: | |
branches: | |
- main # makes sure that it runs on main branch after a PR has been merged | |
# Allows to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
run-unit-tests: | |
# will only run once the PR is in "Ready for Review" state | |
if: ${{ github.event.pull_request.draft == false }} | |
runs-on: ubuntu-latest | |
env: | |
ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }} | |
ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }} | |
ETH_NODE_URI_GOERLI: ${{ secrets.ETH_NODE_URI_GOERLI }} | |
ETH_NODE_URI_ARBITRUM: ${{ secrets.ETH_NODE_URI_ARBITRUM }} | |
ETH_NODE_URI_BSC: ${{ secrets.ETH_NODE_URI_BSC }} | |
ETH_NODE_URI_GNOSIS: ${{ secrets.ETH_NODE_URI_GNOSIS }} | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v4.1.0 | |
with: | |
node-version: 20 | |
- name: Install dev dependencies | |
run: yarn install | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1.2.0 | |
with: | |
version: nightly | |
- name: Install Dependencies | |
run: forge install | |
- name: Run forge tests (with auto-repeat in case of error) | |
uses: Wandalen/wretry.action@v3.7.2 | |
with: | |
command: forge test --evm-version 'shanghai' | |
attempt_limit: 10 | |
attempt_delay: 15000 |