retroactive rewards #23
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 | |
id: build | |
- name: Run Forge tests | |
run: | | |
ETHERSCAN_API_KEY="Y9MZ685PVCHY686V7MKFQXS8Z9Z6WTY4GZ" forge test --via-ir --fork-url http://localhost:8545 -vvvv | |
id: test |