forked from elementor/elementor
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.06 KB
/
Copy pathcss-file-check.yml
File metadata and controls
51 lines (42 loc) · 1.06 KB
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: Check CSS Size Limit
on:
push:
branches:
- 'main'
- '[0-9].[0-9][0-9]'
paths-ignore:
- '**.md'
- '**.txt'
- 'bin/**'
- '.gitignore'
- 'docs/**'
jobs:
build-plugin:
name: CSS size build artifact
uses: ./.github/workflows/build.yml
with:
job_name: CSS size build artifact
check-size-limit:
runs-on: ubuntu-22.04
needs: build-plugin
steps:
- name: Checkout source code
uses: actions/checkout@v6
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 24.15.0
cache: 'npm'
- name: Install dependencies
run: |
npm run install:ci
- name: Download build artifact
uses: actions/download-artifact@v8
with:
name: ${{ needs.build-plugin.outputs.artifact_name }}
path: ./build
- name: Install WordPress environment
run: |
npm run start-local-server
- name: Check file sizes
run: node ./tests/scripts/checkFileSize.js