This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
51 lines (45 loc) · 1.81 KB
/
bundle_size.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
49
50
51
name: Compressed Size
on:
pull_request:
paths:
- "**.ts"
- "**.js"
- "**.vue"
- "**.css"
# Changes to any dependency
- "pnpm-lock.yaml"
# This file configures ESLint. Changes could affect the outcome.
- "**.eslint*"
# This file configures Prettier. Changes could affect the outcome.
- "**.prettier*"
# This file configures TypeScript. Changes could affect the outcome.
- "**.tsconfig*"
# This file configures Nuxt (and therefore the build). Changes could affect the outcome.
- "nuxt.config.ts"
# This file configures Tailwind and could affect the style outcome.
- "tailwind.config.js"
# Changes to this workflow file should always verify the changes are successful.
- ".github/workflows/bundle_size.yml"
# Cancels all previous workflow runs for pull requests that have not completed.
concurrency:
# The concurrency group contains the workflow name and the branch name for pull requests
# or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
build:
name: Check
runs-on: ubuntu-latest
if: github.repository == 'WordPress/openverse-frontend'
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-node-env
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: preactjs/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
# Only measure changes in the client, we don't care much about the size of the server bundles (I don't think?)
pattern: "./.nuxt/dist/client/**/*.{modern.js,js,css}"
exclude: "{./.nuxt/dist/client/lang-*.json.js,./.nuxt/dist/client/lang-*.json.modern.js}"
minimum-change-threshold: 10