Merge pull request #140 from paritytech/pg/remove-weight-fields-from-… #114
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: Lint | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: Run linter | |
| run: deno task lint | |
| - name: Check contracts | |
| run: | | |
| echo "Download the resolc binary" | |
| wget -O resolc https://github.com/paritytech/revive/releases/download/v0.3.0/resolc-x86_64-unknown-linux-musl -q | |
| chmod +x resolc | |
| sudo mv resolc /usr/local/bin | |
| resolc --version | |
| echo "Installing solc" | |
| wget https://github.com/ethereum/solidity/releases/download/v0.8.30/solc-static-linux -q | |
| chmod +x solc-static-linux | |
| sudo mv solc-static-linux /usr/local/bin/solc | |
| echo "Building fixture contracts" | |
| deno task build | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Check Solidity formatting | |
| run: forge fmt --check contracts/*.sol |