refactor!: set LSP8 TokenId Type on deployment / initialization #318
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow benchmark the gas usage of Universal Profile for common interactions | |
name: 🆙 📊 Universal Profile Benchmark | |
on: | |
# enable to run workflow manually | |
workflow_dispatch: | |
pull_request: | |
types: [opened] | |
# compare gas diff only when editing Solidity smart contract code | |
paths: | |
- "contracts/**/*.sol" | |
# do not run on releases (merging to main) | |
branches-ignore: | |
- "main" | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js '16.15.0' | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16.15.0" | |
cache: "npm" | |
- name: 📦 Install dependencies | |
run: npm ci | |
- name: 🏗️ Build contract artifacts | |
run: npx hardhat compile | |
- name: 🧪 Run Benchmark tests | |
run: npm run test:benchmark | |
- name: 📊 Generate Benchmark Report | |
uses: peter-evans/create-or-update-comment@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
issue-number: ${{ github.event.pull_request.number }} | |
body-file: "./benchmark.md" |