Skip to content

Commit

Permalink
update phpunit test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Apr 8, 2024
1 parent fa82092 commit 9f16d45
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
composer prefix-dependencies
composer install
- name: Start WordPress Environment
run: npm run wp-env start --xdebug=coverage

- name: Check WooCommerce Activation
run: npm run wp-env run cli -- wp plugin list

- name: Linting the code
run: |
vendor/bin/phpcs -i
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lint:php": "composer run lint-report | cs2pr",
"lint": "run-s lint:*",
"pretest": "wp-env start --xdebug=coverage && wp-env run cli --env-cwd='wp-content/plugins/woocommerce-pos' composer install",
"test:unit:php": "wp-env run --env-cwd='wp-content/plugins/woocommerce-pos' tests-cli -- vendor/bin/phpunit -c .phpunit.xml.dist --verbose --log-junit phpunit.xml",
"test:unit:php": "wp-env run cli -- wp plugin activate woocommerce && wp-env run --env-cwd='wp-content/plugins/woocommerce-pos' tests-cli -- vendor/bin/phpunit -c .phpunit.xml.dist --verbose --log-junit phpunit.xml",
"test:unit": "run-s test:unit:*",
"test": "run-s test:*",
"build:docs": "jsdoc -c hookdoc-conf.json",
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ There is more information on our website at [https://wcpos.com](https://wcpos.co

== Changelog ==

= 1.5.0 - 2024/04/XX =


= 1.4.16 - 2024/03/28 =
* Fix: nonce check failing for Guest orders when checking out with the desktop application

Expand Down

0 comments on commit 9f16d45

Please sign in to comment.