Skip to content

Commit

Permalink
improve test run result
Browse files Browse the repository at this point in the history
  • Loading branch information
VachaganGrigoryan committed Jul 25, 2024
1 parent 2b6f476 commit cdb8070
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/hardhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ jobs:
run: npx hardhat coverage --sources XdefiToCtrlMigration.sol
working-directory: ./migration

- name: Markdown autodocs
- uses: dineshsonachalam/[email protected]
with:
# Optional, but recommended
# Defaults to "Apply automatic changes"
commit_message: Updated results

# Optional output file paths, defaults to '[./README.md]'.
output_file_paths: '[./README.md]'

# Categories to automatically sync or transform its contents in the markdown files.
# Defaults to '[code-block,json-to-html-table,workflow-artifact-table]'
categories: '[code-block,json-to-html-table,workflow-artifact-table]'

env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
BOB_PRIVATE_KEY: ${{ secrets.BOB_PRIVATE_KEY }}
Expand Down
6 changes: 6 additions & 0 deletions migration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/Lock.ts
```

<!-- MARKDOWN-AUTO-DOCS:START (CODE:src=./gas-report.md) -->
<!-- MARKDOWN-AUTO-DOCS:END -->

<!-- MARKDOWN-AUTO-DOCS:START (JSON_TO_HTML_TABLE:src=./coverage.json) -->
<!-- MARKDOWN-AUTO-DOCS:END -->
1 change: 1 addition & 0 deletions migration/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const config: HardhatUserConfig = {
L1: "ethereum",
gasPriceApi: `https://api.etherscan.io/api?module=proxy&action=eth_gasPrice&apikey=${ETHERSCAN_API_KEY}`,
coinmarketcap: COINMARKETCAP_API_KEY,
reportFormat: "markdown",
},
etherscan: {
apiKey: {
Expand Down

0 comments on commit cdb8070

Please sign in to comment.