Skip to content

Commit

Permalink
ci: fix benchmark path
Browse files Browse the repository at this point in the history
  • Loading branch information
skimaharvey committed Dec 5, 2024
1 parent 0a8a92e commit efc7527
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ jobs:
run: npm ci

- name: 🏗️ Build contract artifacts
run: |
npm run build
npm run build:turbo
run: npm run build

- name: 🧪 Run Benchmark tests
working-directory: ./packages/lsp-smart-contracts
# Rename the file to be able to generate benchmark JSON report
run: |
npm run test:benchmark
Expand All @@ -69,19 +68,21 @@ jobs:
run: npm ci

- name: 🏗️ Build contract artifacts
run: npx hardhat compile
run: npm run build

- name: 🧪 Run Benchmark tests
working-directory: ./packages/lsp-smart-contracts
run: |
npm run test:benchmark
mv gas_benchmark_result.json gas_benchmark_after.json
- name: 📊 Generate Benchmark Report
working-directory: ./packages/lsp-smart-contracts
run: npx hardhat gas-benchmark --compare gas_benchmark_after.json --against gas_benchmark_before.json

- name: 💬 Add Gas Report as comment in PR
uses: peter-evans/create-or-update-comment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body-file: "./gas_benchmark.md"
body-file: "./packages/lsp-smart-contracts/gas_benchmark.md"

0 comments on commit efc7527

Please sign in to comment.