fix #581
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: Code checks | |
| on: | |
| push: | |
| paths: | |
| - src/** | |
| - scripts/** | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: "Which branch to deploy" | |
| required: true | |
| default: "main" | |
| jobs: | |
| check-format: | |
| name: Check code formatting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: v1.3.1 | |
| - name: Run format check | |
| run: forge fmt --check | |
| sizes: | |
| name: Check contract sizes | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: v1.3.1 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| cache: 'yarn' | |
| cache-dependency-path: ./package.json | |
| - name: Check contract sizes | |
| run: yarn sizes |