retroactive rewards #18
Workflow file for this run
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
name: test | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- '**.md' | |
env: | |
FOUNDRY_PROFILE: ci | |
jobs: | |
check: | |
strategy: | |
fail-fast: true | |
name: Foundry project | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Clone EVM Tableland Repository | |
run: | | |
git clone https://github.com/tablelandnetwork/evm-tableland.git | |
cd evm-tableland | |
id: clone | |
- name: Install dependencies | |
run: | | |
cd evm-tableland | |
npm install | |
id: install-dependencies | |
- name: Run Local Chain with Anvil | |
run: | | |
anvil & | |
id: local-chain | |
- name: Run Hardhat Deployment Script | |
run: | | |
cd evm-tableland | |
npx hardhat run scripts/deploy.ts --network localhost | |
id: deploy | |
- name: Run Forge build | |
run: | | |
forge --version | |
forge build --sizes --via-ir --fork-url http://localhost:8545 | |
id: build | |
- name: Run Forge tests | |
run: | | |
forge test --via-ir -vvv --fork-url http://localhost:8545 | |
id: test |