Commit Graph

39 Commits

Author SHA1 Message Date
Chi-Hsuan Huang ecff6cd680 Remove lint-test-js.yml 2022-03-29 16:38:06 +08:00
Chi-Hsuan Huang 73cb00907b Remove unnecessary admin .github files 2022-03-25 14:26:37 +08:00
Christopher Allford da6ad73d18 Add workflow to block merges to main
With the migration of the feature plugin into the `woocommerce/woocommerce` repository, we're going to use this workflow to block content from being merged into `main`.
2022-03-18 13:13:49 -07:00
renovate[bot] 17ef9c0533 Update actions/setup-node action to v2.5.1 (https://github.com/woocommerce/woocommerce-admin/pull/8437)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-09 11:02:52 +08:00
renovate[bot] 2d706ebbd0 Update saulmaldonado/skip-workflow action to v1.1.1 (https://github.com/woocommerce/woocommerce-admin/pull/8435)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-09 11:02:30 +08:00
Chi-Hsuan Huang 86fc8b62e5 Switch to pnpm (https://github.com/woocommerce/woocommerce-admin/pull/8349)
* Add pnpm-workspace.yaml

* Add missing dependencies & replace file: with workspace:* in
package.json

* Replace "npm" with "pnpm"

* Replace "npx" with "pnpx"

* Remove package-lock.json

* Add pnpm setup action to github workflows

* Update webpack babel exclude path

* Upgrade woo e2e and fix e2e test command

Update e2e.yml

Use pnpm run e2e:docker-up in e2e.yml

* Remove unused docker-compose.yaml

* Replace lerna with pnpm commands

Update publish commands

* Exclude _locutus_shared_bc.js in babel.config.js

* Add .npmrc to set enable-pre-post-scripts=true by default

* Fix storybook babel config

Update babel.config.js

* Add changelog

* Update pnpm-lock.yaml

* Replace pnpx with pnpm exec

* Update pnpm-lock.yaml

* Remove js-tests/package-lock.json

* Fix @woocommerce/tracks -> workspace:*

* Update pnpm-lock.yaml

* Add @woocommerce/experimental to onboarding/package.json

* Add "@woocommerce/component" to onboarding/package.json

* Update pnpm-lock.yaml

* Use || instead of && for "test:watch"

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

* Fix packages/number "clean" command

* Add root: true to .eslintrc.js to enforce it to use the root config file

* Exclude packages/**/node_modules from babel transpiling

* Fix js-tests build config

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
2022-03-04 12:01:16 +08:00
Moon b027461e44 Use WordPress 5.6 (https://github.com/woocommerce/woocommerce-admin/pull/7843) 2021-10-26 10:27:37 -07:00
louwie17 3b2cce8814 Include yoast phpunit polyfills in phpunit tests (https://github.com/woocommerce/woocommerce-admin/pull/7695)
* Include yoast phpunit polyfills in phpunit tests

* Do a normal composer install

* Use original composer.lock

* Remove the use of composer 1

* Fix asset url

* Fix failed test with file rename

* Make sure plugin_dir_url is pointing at a file

* Fix asset url take 3

* Fix lint error
2021-09-23 18:01:52 +08:00
Moon 7559f324f0 Bump the fallback WP version to 5.8.0 (https://github.com/woocommerce/woocommerce-admin/pull/7532) 2021-08-18 14:20:17 -07:00
Sam Seay abe7d9d39f Attempt to remove fixed WP version in e2e. (https://github.com/woocommerce/woocommerce-admin/pull/7111) 2021-06-03 09:14:48 -03:00
Sam Seay edc8a1bdc5 Publish storybook docs, remove react docgen based docs (https://github.com/woocommerce/woocommerce-admin/pull/7055) 2021-06-02 15:54:00 +12:00
Ilyas Foo ff1e33bf9e Temporarily hardcode e2e workflow to use WordPress 5.7.1 (https://github.com/woocommerce/woocommerce-admin/pull/7054) 2021-05-24 10:01:25 +08:00
Ron Rennick fe2dd7cc24 remove unnecessary vars from e2e action (https://github.com/woocommerce/woocommerce-admin/pull/6826) 2021-05-10 13:11:56 +12:00
louwie17 3ff1e1375e Update E2E config to support screenshots on test failure (https://github.com/woocommerce/woocommerce-admin/pull/6858)
* Add login page wait script for e2e tests

* Re-navigate to login page, if initial selector does not exist

* Add screenshot if login page did not render

* Add screenshot code, and screenshot artifacts to GH action

* Update screenshot logic for login

* Update artifact task

* Update upload artifact workflow

* Update jest config to make sure the screenshots work on test failures

* Remove old screenshot code

* Add screenshots to daily e2e tests as well incase of failure

* Add changelog
2021-04-26 13:41:38 -03:00
louwie17 4141e5b59c Deleted and re-generated package lock to fix packages (https://github.com/woocommerce/woocommerce-admin/pull/6843)
* Deleted and re-generated package lock to fix packages

* Add changelog

* Add sleep after docker:up
2021-04-22 12:18:15 -03:00
Jeff Stieler a2e2db5ab6 Don't run Daily PHP tests on pull requests. (https://github.com/woocommerce/woocommerce-admin/pull/6793)
See: https://github.com/woocommerce/woocommerce-admin/pull/6715/files#r604712040
2021-04-13 12:04:43 -04:00
Adrian Duffell 7694bad218 Add Daily PHP Tests to CI (https://github.com/woocommerce/woocommerce-admin/pull/6715)
* Add daily PHP tests to CI

* Add support for WC_VERSION=latest env var

* Fix bug where wordpress used woocommerce version
2021-04-13 22:10:55 +08:00
louwie17 b29cd9a6c0 Add support for php8 unit tests (locally and in GH actions) (https://github.com/woocommerce/woocommerce-admin/pull/6678)
* Partial local version to run php8 unit tests

* Remove the post install scripts

* Remove tab

* Make sure woocommerce version contains patch number

* Remove unnecessary script

* Update bin settings and unit test script

* Remove phpunit binary

* Updated how php unit is being run

* Add specific phpunit version for php8

* Update bin phpunit composer.json

* Final cleanup of scripts

* Fix potential test where image is an object

* Move setting image below save

* Add changelog

* Do not convert obj/array to string for email_actions

* Remove some uses of tabs

* Set WP and WC version to minimum php 8 supported

* Remove unnecessary composer install within tests
2021-04-07 14:28:03 -03:00
Adrian Duffell be0afca544 Add Daily E2E Tests to CI (https://github.com/woocommerce/woocommerce-admin/pull/6716)
* Add daily E2E tests to CI

* Update command to start the E2E tests

* Remove pull_request triger
2021-04-06 14:02:13 +08:00
Sam Seay 9dd75e83f8 Improve page object encapsulation, refactor e2e suite, add more e2e tests. (https://github.com/woocommerce/woocommerce-admin/pull/6682) 2021-04-05 12:09:36 +12:00
Adrian Duffell 02e7d6870f Remove CI tests for WooCommerce 4.7 (https://github.com/woocommerce/woocommerce-admin/pull/6640) 2021-03-24 08:51:12 +08:00
Sam Seay 5a54314e3a Fix CI issues (https://github.com/woocommerce/woocommerce-admin/pull/6576)
* PHP unit tests were failing due to a change in the Github actions environment.
* E2E tests were failing because of that issue (they rely on port 8084 which is used in ubuntu 20 environment) and because of an issue with @woocommerce/e2e-environment
2021-03-12 14:14:35 +13:00
Sam Seay bc0460ebae Never skip changelog labelling, default to remove label. (https://github.com/woocommerce/woocommerce-admin/pull/6553) 2021-03-10 16:30:54 +13:00
Ilyas Foo 44020e3255 Fix renovate bot check in changelog lint (https://github.com/woocommerce/woocommerce-admin/pull/6541) 2021-03-10 10:09:37 +08:00
Sam Seay 42ed577632 Improve changelog linting automation (https://github.com/woocommerce/woocommerce-admin/pull/6443)
Don't run on renovate PRs and skip when an escape hatch is provided in PR description.
2021-02-25 13:19:04 +13:00
Sam Seay 7e4a2a6dc8 Add a changelog lint check and auto-labelling to PRs (https://github.com/woocommerce/woocommerce-admin/pull/6414) 2021-02-24 14:47:06 +13:00
renovate[bot] d66becd674 Update actions/setup-node action to v2.1.5 (https://github.com/woocommerce/woocommerce-admin/pull/6433)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-24 14:38:12 +13:00
Paul Sealock 993e236ce0 Update Minimum version in docs and test configs (https://github.com/woocommerce/woocommerce-admin/pull/6342)
* update min version in docs and tests

* update woocommerce-admin.php

* update docker versions

* one more 5.3

* Docker image: back to min versions

* fix main file's min PHP to 7.0, same as Woo Core and readme.txt

* docs/readme

* get_dependency_errors
2021-02-19 11:22:56 +13:00
Timmy Crawford ebd9b5bb8e Add all feature labels to stalebot exclusion list. (https://github.com/woocommerce/woocommerce-admin/pull/6318) 2021-02-15 11:53:50 -08:00
Sam Seay 6847c44869 Add the Mollie payment provider setup task (https://github.com/woocommerce/woocommerce-admin/pull/6257)
* Whitelist the mollie plugin and ensure it does not crash on activation.

* Improve error messages for failed plugin installs.

* Add the payment provider screen for the Mollie payment provider.

* Revert change to try/catch activation, its not needed.

* Move the whitelist of mollie to Onboarding.php.

* Add api fetch to dep list of components, update the node setup workflow on gh actions.

* Pass indsutry to the klarna tests to avoid a crash.

* Add some tests for the mollie payment method.

* Remove redundant change to handler.

* Add a changelog entry for the feature.

* fix name of option

* Add testing instructions

Co-authored-by: Rebecca Scott <me@becdetat.com>
2021-02-05 13:41:55 +10:00
Sam Seay 242bdb475d Migrate the Travis unit test suite to Github actions (https://github.com/woocommerce/woocommerce-admin/pull/6164)
Add a matrix of tests against WP and WC versions and migrate the lint and js test to separate jobs.
2021-02-01 15:24:11 +13:00
Sam Seay 053db8512c Turn on stalebot. (https://github.com/woocommerce/woocommerce-admin/pull/6154) 2021-01-27 00:01:14 +13:00
Sam Seay 592a4f2491 Make stale bot use 60 days for PRs and issues (https://github.com/woocommerce/woocommerce-admin/pull/6152) 2021-01-22 16:47:52 +13:00
Adrian Duffell fdb1a4c7e3 Update stale action to use ascending order (https://github.com/woocommerce/woocommerce-admin/pull/6151)
This ensures the oldest issues/PRs are processed first
2021-01-22 08:53:41 +08:00
Sam Seay 5799daafd7 Increase the max ops per run so we can see everything it will mark stale. (https://github.com/woocommerce/woocommerce-admin/pull/6149) 2021-01-22 13:31:12 +13:00
Sam Seay 52f00e6ceb Go to v3 of stale action. (https://github.com/woocommerce/woocommerce-admin/pull/6147) 2021-01-22 13:02:40 +13:00
Sam Seay ea2b01f65a Add a stale check to PRs and issues (as a dry run for now). (https://github.com/woocommerce/woocommerce-admin/pull/6082) 2021-01-21 21:21:54 +13:00
renovate[bot] d12fb1cc9a Update shivammathur/setup-php action to v2.9.0 (https://github.com/woocommerce/woocommerce-admin/pull/6011)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-07 12:51:43 +13:00
Sam Seay 364b764eb5 Fix the travis build and move the e2e tests to GH actions (https://github.com/woocommerce/woocommerce-admin/pull/5635) 2020-11-16 17:33:06 +13:00