Skip to content

Add lazyload support to Avatar's image #611

Add lazyload support to Avatar's image

Add lazyload support to Avatar's image #611

Workflow file for this run

name: "size-limit"
on:
pull_request:
types: [opened, synchronize, reopened, review_requested, ready_for_review]
jobs:
"size-limit":
name: compare build
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '16.14.0'
- name: Checkout repository
uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: |
node_modules
packages/halo/node_modules
packages/docs/node_modules
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}-config-${{ hashFiles('./.yarnrc', './.github/workflows/size-limit.yml', './package.json', './packages/*/package.json') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Build module and analyze size
uses: andresz1/size-limit-action@v1.5.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: install