Skip to content

Commit 38c07fc

Browse files
authored
feat(ci): add package size reporting (#652)
1 parent 20d1192 commit 38c07fc

5 files changed

Lines changed: 743 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Package Size Report
2+
description: Compare package exports, Nuxt runtime output, and marginal runtime dependencies between two builds
3+
4+
inputs:
5+
base-directory:
6+
description: Repository root containing the base build
7+
required: true
8+
head-directory:
9+
description: Repository root containing the pull request build
10+
required: true
11+
report-path:
12+
description: Markdown report destination
13+
required: true
14+
base-available:
15+
description: Whether the base build completed successfully
16+
required: false
17+
default: 'true'
18+
base-label:
19+
description: Human readable baseline label
20+
required: false
21+
default: ''
22+
23+
runs:
24+
using: composite
25+
steps:
26+
- name: Generate package size report
27+
shell: bash
28+
env:
29+
PACKAGE_SIZE_BASE_AVAILABLE: ${{ inputs.base-available }}
30+
PACKAGE_SIZE_BASE_DIRECTORY: ${{ inputs.base-directory }}
31+
PACKAGE_SIZE_BASE_LABEL: ${{ inputs.base-label }}
32+
PACKAGE_SIZE_HEAD_DIRECTORY: ${{ inputs.head-directory }}
33+
PACKAGE_SIZE_REPORT_PATH: ${{ inputs.report-path }}
34+
run: node "$GITHUB_ACTION_PATH/report.mjs"

0 commit comments

Comments
 (0)