Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI changes #742

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
142f0be
v6.4-a1: Regrouped CDN menu.
Jul 16, 2024
d823baa
v6.4-a2 in dev: Auto CDN Setup for cname method
Jul 22, 2024
b4e58d5
v6.4-a3: Corrected QC and LSADC cache hit status
Jul 23, 2024
ace3a86
v7.0-a1 in dev: QC activation; Removing domain key and auto cdn setup
Aug 6, 2024
7db028d
Dropped img_optm prio and jumbo packages to improve code simplicity a…
Aug 12, 2024
7ac9a5c
v7.0-a1: * **Core** Minimum required PHP version escalated to PHP v7.…
Aug 16, 2024
c2d5be5
v7.0-a2
Aug 16, 2024
0333e48
v7.0-a3 in dev: QC service setup
Aug 16, 2024
7783355
debugErr() func
Aug 19, 2024
60043fc
cloud key address fix
Aug 19, 2024
2f92f6c
v7.0-a3: * **Cloud** Dropped domain key. Used sodium encryption for a…
Aug 20, 2024
d975978
tpl correction
Aug 20, 2024
1601bae
changlog
Aug 21, 2024
7fdfd54
v7.0-a4: * **GUI** Switch buttons rtl compatibility. (Eliza/Mehrshad …
Aug 21, 2024
833fb68
v7.0-a5: * **Core** Added rewrite rule to disable visits to `.log` fi…
Aug 21, 2024
f8a671c
v7 changelog update
Aug 22, 2024
69291b1
Jump back to dash after QC activation
Aug 26, 2024
2f39208
v7.0-a6: QC activation callback updated to encryption validation.
Aug 26, 2024
2a6430a
typo fix
Aug 26, 2024
3182b73
Used signature instead of encryption for QC/WPAPI validation
Aug 27, 2024
23dc1f5
auto clear invalid sk/pk
Aug 27, 2024
ad99b7a
qc v3 my.qc link
Aug 27, 2024
2b4af72
Clear QUIC.cloud activation button.
Aug 27, 2024
f6e88b7
Corrected activation btn
Aug 28, 2024
1f8b3a1
Relocated btn
Aug 28, 2024
066ba27
Echo sign done
Aug 28, 2024
962d4e7
Used implode instead of json_encode for signature validation.
Aug 29, 2024
2bd7810
Sign key path updated
Aug 29, 2024
8fdc081
Add min php version (#741)
timotei-litespeed Sep 9, 2024
01d741d
Corrected min php ver
Sep 9, 2024
f28054c
* **Misc** Improved readme file by adding min supported PHP/WP versio…
Sep 9, 2024
cfbb13e
-
Sep 9, 2024
e1f2aca
v7.0-a7: AVIF in dev
Sep 10, 2024
2a1e05f
v7.0-a7: * 🌱**Image Optimization** Added AVIF format.
Sep 10, 2024
ad67220
CI changes
Tymotey Sep 11, 2024
a92561d
Reorder items
Tymotey Sep 16, 2024
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
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,36 @@ on:
- 'v*.*'
pull_request:

# Cancels all previous workflow runs for pull requests that have not completed.
# concurrency:
# group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
# cancel-in-progress: true

jobs:
test:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Initialize Cache Composer
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: .cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

# Initialize Node.js
- uses: actions/setup-node@v3
with:
node-version: '20'
node-version: '22'
check-latest: true
cache: npm
cache-dependency-path: package-lock.json

- run: npm ci
# Start actions
- run: mkdir -p .cache
- run: composer install
- run: composer run sniff-check

- run: npm ci
- run: npm run format-check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
.env*
.vscode
node_modules
/vendor
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
**/*.min.*
**/*.ori.*
**/*.tpl.php
composer.json
composer.lock
package.json
package-lock.json
vendor
.cache
assets/js/css_async.js
assets/js/webfontloader.js
lib
Expand Down
14 changes: 10 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
"options": {
"parser": "json"
}
},
{
"files": "**/*.{yml,yaml}",
"options": { "tabWidth": 2 }
"options": {
"tabWidth": 2
}
}
],
"plugins": ["@prettier/plugin-php"],
"plugins": [
"@prettier/plugin-php"
],
"arrowParens": "avoid",
"braceStyle": "per-cs",
"endOfLine": "auto",
Expand All @@ -21,4 +27,4 @@
"trailingComma": "all",
"trailingCommaPHP": true,
"useTabs": true
}
}
5 changes: 5 additions & 0 deletions assets/css/litespeed.css
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,10 @@ h3 .litespeed-learn-more {
position: relative;
}

.rtl .litespeed-switch {
flex-direction: row-reverse;
}

.litespeed-switch input:checked:active + label {
box-shadow:
0 2px 0 rgba(27, 146, 146, 0.7),
Expand Down Expand Up @@ -2805,6 +2809,7 @@ g.litespeed-pie_info .litespeed-pie-done {

.litespeed-dashboard-stats-wrapper {
display: flex;
position: relative;
}

.litespeed-dashboard-stats-wrapper .litespeed-postbox {
Expand Down
13 changes: 13 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "litespeedtech/lscache_wp",
"require-dev": {
timotei-litespeed marked this conversation as resolved.
Show resolved Hide resolved
"squizlabs/php_codesniffer": "*",
"phpcompatibility/php-compatibility": "*"
},
"prefer-stable": true,
"scripts": {
"post-install-cmd": "phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility",
"post-update-cmd": "phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility",
"sniff-check": "phpcs --standard=./phpcs.xml.dist"
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a newline at end of file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It get removed by Prettier. Should I add it manually?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that's fine.

161 changes: 161 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions data/const.default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
; O_AUTO_UPGRADE
auto_upgrade = false

; O_API_KEY
api_key = ''

; O_SERVER_IP
server_ip = ''

Expand Down
12 changes: 6 additions & 6 deletions litespeed-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: LiteSpeed Cache
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
* Description: High-performance page caching and site optimization from LiteSpeed
* Version: 6.5.0.2
* Version: 7.0-a7
* Author: LiteSpeed Technologies
* Author URI: https://www.litespeedtech.com
* License: GPLv3
Expand Down Expand Up @@ -34,7 +34,7 @@
return;
}

!defined('LSCWP_V') && define('LSCWP_V', '6.5.0.2');
!defined('LSCWP_V') && define('LSCWP_V', '7.0-a7');

!defined('LSCWP_CONTENT_DIR') && define('LSCWP_CONTENT_DIR', WP_CONTENT_DIR);
!defined('LSCWP_DIR') && define('LSCWP_DIR', __DIR__ . '/'); // Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU
Expand Down Expand Up @@ -174,13 +174,13 @@ function wp_create_nonce_litespeed_esi($action = -1)
if (!function_exists('run_litespeed_cache')) {
function run_litespeed_cache()
{
//Check minimum PHP requirements, which is 5.3 at the moment.
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
//Check minimum PHP requirements, which is 7.2 at the moment.
if (version_compare(PHP_VERSION, '7.2.0', '<')) {
return;
}

//Check minimum WP requirements, which is 4.9 at the moment.
if (version_compare($GLOBALS['wp_version'], '4.9', '<')) {
//Check minimum WP requirements, which is 5.3 at the moment.
if (version_compare($GLOBALS['wp_version'], '5.3', '<')) {
return;
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "High-performance page caching and site optimization from LiteSpeed",
"license": "GPLv3",
"scripts": {
"format": "prettier --write . '**/*.php'",
"format-check": "prettier --check . '**/*.php'"
"format": "prettier --write . '**/*.{js,css,php}'",
"format-check": "prettier --check . '**/*.{js,css,php}'"
},
"devDependencies": {
"@prettier/plugin-php": "^0.21.0",
Expand Down
Loading