Skip to content

feat(MainNavigationBar): add menu #4231

feat(MainNavigationBar): add menu

feat(MainNavigationBar): add menu #4231

Workflow file for this run

name: Size stats
on:
pull_request:
branches: [master]
concurrency:
group: size-stats-${{ github.ref }}
cancel-in-progress: true
jobs:
branch-size-stats:
runs-on: ubuntu-latest
outputs:
total-js: ${{ steps.stats.outputs.total-js }}
js-without-icons: ${{ steps.stats.outputs.js-without-icons }}
lib-overhead: ${{ steps.stats.outputs.lib-overhead }}
lib-overhead-gzip: ${{ steps.stats.outputs.lib-overhead-gzip }}
steps:
- uses: actions/checkout@v4
- run: yarn install --immutable --immutable-cache
- run: yarn compile
- id: stats
uses: './.github/actions/size-stats'
master-size-stats:
runs-on: ubuntu-latest
outputs:
total-js: ${{ steps.stats.outputs.total-js }}
js-without-icons: ${{ steps.stats.outputs.js-without-icons }}
lib-overhead: ${{ steps.stats.outputs.lib-overhead }}
lib-overhead-gzip: ${{ steps.stats.outputs.lib-overhead-gzip }}
steps:
- uses: actions/checkout@v4
with:
ref: master
- run: yarn install --immutable --immutable-cache
- run: yarn compile
- id: stats
uses: './.github/actions/size-stats'
show-results:
runs-on: ubuntu-latest
needs: [master-size-stats, branch-size-stats]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: Telefonica/github-actions
token: '${{ secrets.NOVUM_PRIVATE_REPOS }}'
path: .github/shared-actions
- run: yarn install --immutable --immutable-cache
- name: Form size stats message
id: message
uses: './.github/actions/size-stats-message'
with:
master-total-js: ${{ needs.master-size-stats.outputs.total-js }}
master-js-without-icons: ${{ needs.master-size-stats.outputs.js-without-icons }}
master-lib-overhead: ${{ needs.master-size-stats.outputs.lib-overhead }}
master-lib-overhead-gzip: ${{ needs.master-size-stats.outputs.lib-overhead-gzip }}
pr-total-js: ${{ needs.branch-size-stats.outputs.total-js }}
pr-js-without-icons: ${{ needs.branch-size-stats.outputs.js-without-icons }}
pr-lib-overhead: ${{ needs.branch-size-stats.outputs.lib-overhead }}
pr-lib-overhead-gzip: ${{ needs.branch-size-stats.outputs.lib-overhead-gzip }}
- name: Comment on PR
uses: ./.github/shared-actions/novum/comment-pr
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
title: '**Size stats**'
message: ${{ steps.message.outputs.message }}
update-if-present: 'true'