Skip to content

Commit

Permalink
fix/unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0zd0 committed Jun 27, 2024
1 parent 48793ce commit af34f77
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion bin/zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion tests/unit/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function () {
HPOS_STATE::init();
PLUGINS_STATE::activate_plugins();

require_once __DIR__ . '/../../reepay-woocommerce-payment.php';
require_once __DIR__ . '/../../index.php';
}
);

Expand Down

0 comments on commit af34f77

Please sign in to comment.