-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix linter & better organize foundry dependencies (#53)
* Fix the linter CI and foundry dependencies for better DX
- Loading branch information
1 parent
89cdc6a
commit ce353d4
Showing
19 changed files
with
819 additions
and
2,370 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
ci: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [lts/*] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Setup node env | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: yarn | ||
|
||
- name: Install foundry-toolchain | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install dependencies | ||
run: yarn install --immutable | ||
|
||
# - name: Run foundry anvil fork | ||
# run: yarn fork | ||
# env: | ||
# SEPOLIA_RPC_URL: ${{ secrets.SEPOLIA_RPC_URL }} | ||
|
||
# - name: Deploy contracts to anvil fork | ||
# run: yarn deploy:factory | ||
# env: | ||
# DEPLOYER_PRIVATE_KEY: ${{ secrets.DEPLOYER_PRIVATE_KEY }} | ||
# SEPOLIA_RPC_URL: ${{ secrets.SEPOLIA_RPC_URL }} | ||
|
||
- name: Run nextjs lint | ||
run: yarn next:lint --max-warnings=0 | ||
|
||
- name: Check typings on nextjs | ||
run: yarn next:check-types |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,21 +30,14 @@ | |
"next:format": "yarn workspace @se-2/nextjs format", | ||
"next:check-types": "yarn workspace @se-2/nextjs check-types", | ||
"next:build": "yarn workspace @se-2/nextjs build", | ||
"postinstall": "husky install", | ||
"postinstall": "husky install && forge install --root packages/foundry", | ||
"precommit": "lint-staged", | ||
"vercel": "vercel", | ||
"vercel:yolo": "vercel --build-env NEXT_PUBLIC_IGNORE_BUILD_ERROR=true" | ||
}, | ||
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"forge-gas-snapshot": "https://github.com/ylv-io/forge-gas-snapshot", | ||
"husky": "^8.0.1", | ||
"lint-staged": "^13.0.3", | ||
"next": "^14.0.4", | ||
"permit2": "https://github.com/Uniswap/permit2.git#cc56ad0f3439c502c246fc5cfcc3db92bb8b7219", | ||
"vercel": "^32.4.1" | ||
}, | ||
"dependencies": { | ||
"@balancer-labs/v3-monorepo": "https://github.com/balancer/balancer-v3-monorepo#head=scaffold-package-setup-deploy5" | ||
"lint-staged": "^13.0.3" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
DEPLOYER_PRIVATE_KEY= | ||
ETHERSCAN_API_KEY= | ||
SEPOLIA_RPC_URL= |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
@test/=../../node_modules/@balancer-labs/v3-monorepo/pkg/ | ||
@balancer-labs/v3-solidity-utils/=../../node_modules/@balancer-labs/v3-monorepo/pkg/solidity-utils/ | ||
@balancer-labs/v3-interfaces/=../../node_modules/@balancer-labs/v3-monorepo/pkg/interfaces/ | ||
@balancer-labs/v3-vault/=../../node_modules/@balancer-labs/v3-monorepo/pkg/vault/ | ||
permit2/=../../node_modules/permit2/ | ||
forge-gas-snapshot/=../../node_modules/forge-gas-snapshot/src/ | ||
@test/=node_modules/@balancer-labs/v3-monorepo/pkg/ | ||
@balancer-labs/v3-solidity-utils/=node_modules/@balancer-labs/v3-monorepo/pkg/solidity-utils/ | ||
@balancer-labs/v3-interfaces/=node_modules/@balancer-labs/v3-monorepo/pkg/interfaces/ | ||
@balancer-labs/v3-vault/=node_modules/@balancer-labs/v3-monorepo/pkg/vault/ | ||
permit2/=lib/permit2/ | ||
forge-gas-snapshot/=node_modules/forge-gas-snapshot/src/ |
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
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
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
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
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
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
Oops, something went wrong.