Skip to content

Commit

Permalink
Merge pull request #85 from stakewise/feature/stakewise-v2
Browse files Browse the repository at this point in the history
StakeWise V2
  • Loading branch information
tsudmi authored Jan 7, 2022
2 parents 0efd8c0 + bc2e4af commit 1cc1436
Show file tree
Hide file tree
Showing 68 changed files with 11,841 additions and 9,558 deletions.
41 changes: 38 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
executors:
default:
docker:
- image: circleci/node:12
- image: circleci/node:14
working_directory: /tmp/workspace

jobs:
Expand Down Expand Up @@ -57,16 +57,48 @@ jobs:

test:
executor: default
resource_class: large
parallelism: 16
steps:
- checkout
- attach_workspace:
at: /tmp/workspace
- run:
name: Run tests
command: yarn test:gas
command: |
circleci tests glob 'test/**/*.test.js' |
circleci tests split |
xargs yarn test:gas
- run:
name: Save gas report
command: |
mv gasReporterOutput.json /tmp/workspace/gasReporterOutput-$CIRCLE_NODE_INDEX.json
- persist_to_workspace:
root: /tmp/workspace
paths:
- gasReporterOutput-*.json

report-gas:
executor: default
steps:
- checkout
- attach_workspace:
at: /tmp/workspace
- run:
name: Report gas changes
command: npx codechecks
command: |
npx hardhat gas-reporter:merge /tmp/workspace/gasReporterOutput-*.json
npx codechecks
- store_artifacts:
path: gasReporterOutput.json
- run:
name: Process test report
when: always
command: |
# Convert absolute paths to relative to support splitting tests by timing
if [ -e /tmp/workspace/log/test-results/mocha/test-results.xml ]; then
sed -i "s|`pwd`/||g" /tmp/workspace/log/test-results/mocha/test-results.xml
fi
# FIXME: https://github.com/sc-forks/solidity-coverage/issues/574
# coverage:
Expand Down Expand Up @@ -97,6 +129,9 @@ workflows:
- test:
requires:
- compile
- report-gas:
requires:
- test
# - coverage:
# requires:
# - compile
3 changes: 0 additions & 3 deletions .mocharc.js

This file was deleted.

Loading

0 comments on commit 1cc1436

Please sign in to comment.