update go-ethereum dependency (#599) #1106
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 | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "contracts/**" | |
- ".github/workflows/contracts.yaml" | |
pull_request: | |
paths: | |
- "build/**" | |
- "contracts/**" | |
- "ops/l2-genesis/**" | |
- ".github/workflows/contracts.yaml" | |
defaults: | |
run: | |
working-directory: "contracts" | |
jobs: | |
check: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install Solhint | |
run: npm install -g solhint | |
- name: Lint | |
run: make lint-sol | |
test: | |
runs-on: ubuntu-latest | |
env: | |
FORCE_COLOR: 1 | |
GAS: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run build | |
run: yarn && yarn build | |
- name: Run tests | |
run: yarn test |