build(deps-dev): bump eslint-plugin-jsdoc from 40.3.0 to 46.5.1 #2445
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
name: Analyse Bundle | |
on: pull_request | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build-head: | |
name: 'Build Current Branch' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build:stats | |
- name: Upload stats.json | |
uses: actions/upload-artifact@v3 | |
with: | |
name: head-stats | |
path: ./dist/micronutrient-support-tool/stats.json | |
build-base: | |
name: 'Build Develop Branch' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.base_ref }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build:stats | |
- name: Upload stats.json | |
uses: actions/upload-artifact@v3 | |
with: | |
name: base-stats | |
path: ./dist/micronutrient-support-tool/stats.json | |
compare: | |
name: 'Compare base & head bundle sizes' | |
runs-on: ubuntu-latest | |
needs: [build-base, build-head] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download base artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: base-stats | |
path: base-stats | |
- name: Download head artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: head-stats | |
path: head-stats | |
- name: Diff between base & head | |
uses: micronutrientsupport/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
base_stats_path: ./base-stats/stats.json | |
head_stats_path: ./head-stats/stats.json | |
document_extensions: 'html' | |
script_extensions: 'js,jsx,ts,tsx' | |
stylesheet_extensions: 'css' | |
image_extensions: 'jpg,jpeg,png,svg,ico,webp' | |
misc_extensions: 'json,geojson,yml,yaml' |