-
Notifications
You must be signed in to change notification settings - Fork 30
48 lines (42 loc) · 1.58 KB
/
bundle-analyser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: DCR Bundle Analyser
on:
push:
paths-ignore:
- 'apps-rendering/**'
- 'dotcom-rendering/docs/**'
jobs:
build_check:
name: DCR Bundle Analyser
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node environment
uses: ./.github/actions/setup-node-env
- name: Generate production build
run: make build
working-directory: dotcom-rendering
- name: Archive code coverage results for web bundle
uses: actions/upload-artifact@v4
with:
name: bundle-analyser-report-web-bundles
path: dotcom-rendering/dist/stats/client.web-bundles.html
if-no-files-found: error
- name: Archive code coverage results for web legacy bundle
uses: actions/upload-artifact@v4
with:
name: bundle-analyser-report-web-legacy
path: dotcom-rendering/dist/stats/client.web.legacy-bundles.html
if-no-files-found: error
- name: Archive code coverage results for web variant bundle
uses: actions/upload-artifact@v4
with:
name: bundle-analyser-report-web
path: dotcom-rendering/dist/stats/client.web.variant-bundles.html
if-no-files-found: warn # Variant bundle only exists when an active experiment is going on
- name: Archive code coverage results for apps bundle
uses: actions/upload-artifact@v4
with:
name: bundle-analyser-report-apps
path: dotcom-rendering/dist/stats/client.apps-bundles.html
if-no-files-found: error