chore: Update bLUSD plot script data file #562
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: Contracts | |
env: | |
CI: true | |
FORCE_COLOR: true | |
on: | |
push: | |
branches: [main] | |
paths: | |
- ".github/workflows/contracts.yml" | |
- "LUSDChickenBonds/**" | |
pull_request: | |
paths: | |
- ".github/workflows/contracts.yml" | |
- "LUSDChickenBonds/**" | |
jobs: | |
dev-test: | |
name: Dev tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
# TODO pin this down once Foundry starts versioning releases | |
version: nightly | |
- name: Run dev tests | |
working-directory: LUSDChickenBonds | |
run: >- | |
forge test | |
-vvv | |
--match-contract '(ChickenBondManagerDev|BondNFT|GenerativeEggArtwork)' | |
mainnet-test: | |
name: Mainnet tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
# TODO pin this down once Foundry starts versioning releases | |
version: nightly | |
- name: Run mainnet tests | |
working-directory: LUSDChickenBonds | |
env: | |
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} | |
run: >- | |
forge test | |
-vvv | |
--match-contract '(ChickenBondManagerMainnet|BLUSDLPZap)' | |
--fork-url ${{ secrets.ETH_RPC_URL }} | |
console-logs: | |
name: Check we didn’t forget to remove console imports | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Check console imports | |
working-directory: LUSDChickenBonds | |
run: >- | |
! grep -R console src | grep import | grep -v "://" | grep -v TestContracts | grep -v ExternalContracts | grep -v "\.t\.sol" |