Merge pull request #40 from SiegfriedBz/develop #64
This file contains hidden or 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: CI-Foundry | |
| on: | |
| push: | |
| branches: [ main, develop, ci/foundry-tests ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| foundry-tests: | |
| name: Foundry Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: nightly | |
| - name: Run Tests | |
| working-directory: ./apps/contracts | |
| env: | |
| # Standard Dev/Anvil Keys & Addresses preventing integer overflow | |
| DEPLOYER_PRIVATE_KEY: "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" | |
| AI_AGENT_ADDRESS: "0x70997970C51812dc3A010C7d01b50e0d17dc79C8" | |
| TREASURY_ADDRESS: "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC" | |
| # Protocol Logic Values | |
| REPUTATION_BOOST: "10" | |
| PUBLISHER_MIN_FEE: "10000000000000000" | |
| PUBLISHER_STAKE: "50000000000000000" | |
| REVIEWER_STAKE: "20000000000000000" | |
| REVIEWER_REWARD: "10000000000000000" | |
| VRF_NUM_WORDS: "3" | |
| run: | | |
| if [ -z "$(ls -A lib)" ]; then forge install; fi | |
| forge test -vvv |