diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d175cc49..ced71aac 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -57,8 +57,8 @@ jobs: export TZ=Europe/Moscow BRANCH_NAME=${{ env.BRANCH_NAME }} CURRENT_DATE=$(date +"%d.%m.%Y %H:%M:%S") - sed -i "s/\(Plugin Name: .*\)/\1 (${BRANCH_NAME})/" reepay-woocommerce-payment.php - sed -i "s/\(Description: .*\)/\1 (Upload date: ${CURRENT_DATE})/" reepay-woocommerce-payment.php + sed -i "s/\(Plugin Name: .*\)/\1 (${BRANCH_NAME})/" index.php + sed -i "s/\(Description: .*\)/\1 (Upload date: ${CURRENT_DATE})/" index.php - name: Build and zip project run: | diff --git a/bin/zip.sh b/bin/zip.sh index 36934feb..f8d97552 100644 --- a/bin/zip.sh +++ b/bin/zip.sh @@ -62,7 +62,7 @@ cd ../ # Copy all files status "Copying files... ✌️" -FILES=(includes languages templates updates vendor Readme.txt reepay-woocommerce-payment.php) +FILES=(includes languages templates updates vendor Readme.txt index.php main-class-shortcut.php) for file in ${FILES[@]}; do cp -R $file $BUILD_DIR diff --git a/composer.json b/composer.json index 488f553f..066bf3a6 100644 --- a/composer.json +++ b/composer.json @@ -36,5 +36,11 @@ "billwerk/php-sdk": "^1.0", "guzzlehttp/guzzle": "^7.0", "ext-mbstring": "*" + }, + "scripts": { + "phpcs": "./bin/phpcs.sh", + "phpcs:full": "./bin/phpcs.sh -full", + "phpcs:fix": "./bin/phpcs.sh -fix", + "zip": "./bin/zip.sh" } } \ No newline at end of file diff --git a/tests/unit/bootstrap.php b/tests/unit/bootstrap.php index c5d249f9..d9694e17 100644 --- a/tests/unit/bootstrap.php +++ b/tests/unit/bootstrap.php @@ -39,7 +39,7 @@ function () { HPOS_STATE::init(); PLUGINS_STATE::activate_plugins(); - require_once __DIR__ . '/../../reepay-woocommerce-payment.php'; + require_once __DIR__ . '/../../index.php'; } );