File tree Expand file tree Collapse file tree 4 files changed +12
-16
lines changed Expand file tree Collapse file tree 4 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 24
24
# - name: Lint
25
25
# run: yarn workspace @mimic-fi/v3-tasks lint
26
26
27
- # test:
28
- # runs-on: ubuntu-latest
29
- # steps:
30
- # - name: Checkout
31
- # uses: actions/checkout@v3
32
- # - name: Set up environment
33
- # uses: ./.github/actions/setup
34
- # - name: Build
35
- # run: yarn build
36
- # - name: Test
37
- # run: yarn workspace @mimic-fi/v3-tasks test
38
-
39
- gas :
27
+ test :
40
28
runs-on : ubuntu-latest
41
29
steps :
42
30
- name : Checkout
45
33
uses : ./.github/actions/setup
46
34
- name : Build
47
35
run : yarn build
36
+ - name : Test
37
+ run : REPORT_GAS=true yarn workspace @mimic-fi/v3-tasks test
48
38
- name : Gas Report
49
39
env :
50
- CC_SECRET : ${{ secrets.CODECHECKS_SECRET }}
51
- run : CI=true yarn workspace @mimic-fi/v3-tasks codechecks
40
+ CC_SECRET : ${{ secrets.CODECHECKS_SECRET }}
41
+ run : yarn workspace @mimic-fi/v3-tasks codechecks
Original file line number Diff line number Diff line change 5
5
dist
6
6
.certora_internal
7
7
.certora_recent_jobs.json
8
+ gasReporterOutput.json
8
9
* .log
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import '@nomiclabs/hardhat-ethers'
2
2
import '@nomiclabs/hardhat-waffle'
3
3
import '@mimic-fi/v3-helpers/dist/tests'
4
4
import 'hardhat-local-networks-config-plugin'
5
+ import 'hardhat-gas-reporter'
5
6
6
7
import { homedir } from 'os'
7
8
import path from 'path'
@@ -17,4 +18,8 @@ export default {
17
18
} ,
18
19
} ,
19
20
} ,
21
+ gasReporter : {
22
+ outputFile : 'gasReporterOutput.json' ,
23
+ enabled : ! ! process . env . REPORT_GAS
24
+ } ,
20
25
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { Contract } from 'ethers'
16
16
17
17
import { deployEnvironment } from '../../src/setup'
18
18
19
- describe ( 'BaseTask' , ( ) => {
19
+ describe . only ( 'BaseTask' , ( ) => {
20
20
let task : Contract
21
21
let smartVault : Contract , authorizer : Contract , owner : SignerWithAddress
22
22
You can’t perform that action at this time.
0 commit comments