Skip to content

[REG-1633] Fix CI

[REG-1633] Fix CI #708

Workflow file for this run

name: Contracts size
on:
pull_request: {}
jobs:
target-contracts-size:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
fetch-depth: 2
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn compile:size
- uses: actions/upload-artifact@v4
with:
name: hardhat-contract-sizer-output
include-hidden-files: true
path: cache/.hardhat_contract_sizer_output.json
pr-contracts-size:
runs-on: ubuntu-latest
needs: target-contracts-size
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
- run: yarn install --frozen-lockfile
- uses: actions/download-artifact@v4
with:
name: hardhat-contract-sizer-output
path: cache/
- uses: unstoppabledomains/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
command: yarn compile:size