Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- name: Install Dependencies
uses: ./.github/actions/install-deps

- name: Run Build
run: npm run build

- name: Run Lint
run: npm run lint

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
experiments: |-
pages_panel:true
editor_v2:false
e_nested_atomic_repeaters:false
templates: |-
elementor-templates

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tmp/
.lighthouseci/
.wp-env.json
.lighthouserc.json
.turbo
packages/**/dist

*.log
*.map
Expand Down
2 changes: 1 addition & 1 deletion actions/run-lighthouse-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ inputs:

runs:
using: node20
main: ./dist/index.cjs
main: ./dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions actions/run-lighthouse-tests/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
getBooleanInput,
getMapInput,
getNumberInput,
} from '../inputs';
import { setOutput } from '../outputs';
setOutput,
} from '@elementor-editor-github-actions/utils';

const LHCI_VERSION = '0.14.x';
const OUTPUT_DIR = path.resolve(process.cwd(), './.lhci');
Expand Down
21 changes: 21 additions & 0 deletions actions/run-lighthouse-tests/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@elementor-editor-github-actions/run-lighthouse-tests",
"author": "Elementor Team",
"license": "GPL-3.0-or-later",
"private": true,
"scripts": {
"build": "tsup --config ./tsup.config.ts",
"dev": "npm run build -- --watch"
},
"dependencies": {
"@elementor-editor-github-actions/utils": "*",
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"fs-extra": "^11.3.0",
"zod": "^3.24.2"
},
"devDependencies": {
"tsup": "^8.4.0",
"@types/fs-extra": "^11.0.4"
}
}
11 changes: 11 additions & 0 deletions actions/run-lighthouse-tests/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['index.ts'],
outDir: 'dist',
format: 'cjs',
noExternal: [/.+/],
platform: 'node',
minify: true,
clean: true,
});
2 changes: 1 addition & 1 deletion actions/setup-elementor-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ inputs:
description: Elementor experiments to enable or disable, separated by new lines (e.g. `pages_panel:true \n editor_v2:false \n e_nested_atomic_repeaters:false`)
runs:
using: node20
main: ./dist/index.cjs
main: ./dist/index.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions actions/setup-elementor-env/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import { z } from 'zod';
import { getArrayInput, getMapInput, getStringInput } from '../inputs';
import {
getArrayInput,
getMapInput,
getStringInput,
} from '@elementor-editor-github-actions/utils';

export async function run() {
try {
Expand Down Expand Up @@ -55,7 +59,7 @@ export async function run() {
'deactivate',
experiments.off.join(','),
],
error: `Failed to deactivate experiments: ${experiments.on.join(', ')}`,
error: `Failed to deactivate experiments: ${experiments.off.join(', ')}`,
});
});
}
Expand Down
19 changes: 19 additions & 0 deletions actions/setup-elementor-env/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@elementor-editor-github-actions/setup-elementor-env",
"author": "Elementor Team",
"license": "GPL-3.0-or-later",
"private": true,
"scripts": {
"build": "tsup --config ./tsup.config.ts",
"dev": "npm run build -- --watch"
},
"dependencies": {
"@elementor-editor-github-actions/utils": "*",
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"zod": "^3.24.2"
},
"devDependencies": {
"tsup": "^8.4.0"
}
}
11 changes: 11 additions & 0 deletions actions/setup-elementor-env/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['index.ts'],
outDir: 'dist',
format: 'cjs',
noExternal: [/.+/],
platform: 'node',
minify: true,
clean: true,
});
2 changes: 1 addition & 1 deletion actions/setup-wp-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ inputs:

runs:
using: node20
main: ./dist/index.cjs
main: ./dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion actions/setup-wp-env/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
getBooleanInput,
getMapInput,
getStringInput,
} from '../inputs';
} from '@elementor-editor-github-actions/utils';

const WP_ENV_VERSION = '10.4.0';

Expand Down
19 changes: 19 additions & 0 deletions actions/setup-wp-env/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@elementor-editor-github-actions/setup-wp-env",
"author": "Elementor Team",
"license": "GPL-3.0-or-later",
"private": true,
"scripts": {
"build": "tsup --config ./tsup.config.ts",
"dev": "npm run build -- --watch"
},
"dependencies": {
"@elementor-editor-github-actions/utils": "*",
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"zod": "^3.24.2"
},
"devDependencies": {
"tsup": "^8.4.0"
}
}
11 changes: 11 additions & 0 deletions actions/setup-wp-env/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['index.ts'],
outDir: 'dist',
format: 'cjs',
noExternal: [/.+/],
platform: 'node',
minify: true,
clean: true,
});
Loading