Add risk-disclosures.md and test coverage for by-design fund-loss risks #938
Workflow file for this run
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 | |
| permissions: {} | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| jobs: | |
| solidity: | |
| name: Solidity (Foundry) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| working-directory: solidity | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| submodules: recursive | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Show Forge version | |
| run: forge --version | |
| - name: Run Forge fmt | |
| run: FOUNDRY_PROFILE=ci forge fmt --check | |
| - name: Run Forge lint | |
| run: FOUNDRY_PROFILE=ci forge lint | |
| # Remove until we create proper gas tests | |
| # - name: Run Forge gas snapshot test | |
| # run: FOUNDRY_PROFILE=ci forge snapshot --check | |
| - name: Run Forge build | |
| run: FOUNDRY_PROFILE=ci forge build --sizes | |
| - name: Run Forge tests | |
| run: FOUNDRY_PROFILE=ci forge test |