mirror of
https://github.com/Instadapp/Gelato-automations.git
synced 2024-07-29 22:28:07 +00:00
chore: configured gas-reporter and codechecks CI
This commit is contained in:
parent
fd9eedf224
commit
2944a4e56e
|
@ -20,20 +20,23 @@ jobs: # a collection of steps
|
|||
- ./node_modules
|
||||
- run: # Compile
|
||||
name: Compile
|
||||
command: npx hardhat compile
|
||||
command: yarn compile
|
||||
- run: # Formatting
|
||||
name: Prettier Check
|
||||
command: yarn prettier --check .
|
||||
- run: # Linting
|
||||
name: ESLint
|
||||
command: yarn eslint . && yarn lint:sol
|
||||
command: yarn lint
|
||||
- restore_cache: # special step to restore the Hardhat Network Fork Cache
|
||||
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
|
||||
name: Restore Hardhat Network Fork Cache
|
||||
key: hardhat-network-fork
|
||||
- run: # Tests
|
||||
name: Tests using hardhat mainnet fork
|
||||
command: npx hardhat test
|
||||
name: Tests using hardhat mainnet fork and gas reporter
|
||||
command: REPORT_GAS=1 yarn test
|
||||
- run: # Codechecks
|
||||
name: Codechecks gas reporting
|
||||
command: npx codechecks
|
||||
- save_cache: # special step to save the Hardhat Network Fork cache
|
||||
name: Save Hardhat Network Fork Cache
|
||||
key: hardhat-network-fork
|
||||
|
|
5
codechecks.yml
Normal file
5
codechecks.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
checks:
|
||||
- name: eth-gas-reporter/codechecks
|
||||
settings:
|
||||
branches:
|
||||
- master
|
|
@ -4,6 +4,7 @@ require("@nomiclabs/hardhat-ethers");
|
|||
require("@nomiclabs/hardhat-waffle");
|
||||
require("hardhat-deploy");
|
||||
require("hardhat-deploy-ethers");
|
||||
require("hardhat-gas-reporter");
|
||||
|
||||
// Libraries
|
||||
const assert = require("assert");
|
||||
|
@ -26,6 +27,11 @@ const INSTA_MASTER = "0xb1DC62EC38E6E3857a887210C38418E4A17Da5B2";
|
|||
// ================================= CONFIG =========================================
|
||||
module.exports = {
|
||||
defaultNetwork: "hardhat",
|
||||
gasReporter: {
|
||||
enabled: process.env.REPORT_GAS ? true : false,
|
||||
maxMethodDiff: 25,
|
||||
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
|
||||
},
|
||||
// hardhat-deploy
|
||||
namedAccounts: {
|
||||
deployer: {
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
"debug": "DEBUG=true yarn compile && npx hardhat test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@codechecks/client": "^0.1.10",
|
||||
"@gelatonetwork/core": "1.0.0",
|
||||
"@nomiclabs/hardhat-ethers": "2.0.0",
|
||||
"@nomiclabs/hardhat-waffle": "2.0.0",
|
||||
|
@ -28,6 +29,7 @@
|
|||
"hardhat": "2.0.2",
|
||||
"hardhat-deploy": "0.7.0-beta.28",
|
||||
"hardhat-deploy-ethers": "^0.3.0-beta.5",
|
||||
"hardhat-gas-reporter": "^1.0.1",
|
||||
"husky": ">=4",
|
||||
"lint-staged": "10.5.1",
|
||||
"prettier": "2.1.2",
|
||||
|
|
Loading…
Reference in New Issue
Block a user