Commit Graph

434 Commits

Author SHA1 Message Date
jamelreid b95b3a11df Updated workflow if condition 2022-01-03 18:11:26 -05:00
jamelreid bd48783c25 Updated test steps to always execute 2021-12-23 18:27:17 -05:00
jamelreid 48dec9ea14 Updated step condition 2021-12-23 18:14:40 -05:00
jamelreid 9be997d36e Updated to always remove label after smoke test 2021-12-23 18:02:37 -05:00
Tam Mullen 56820e9431 Added workflow for issue triage replies 2021-12-22 13:41:31 +00:00
jamelreid 237bb5ecd5 Updated step condition 2021-12-20 13:10:20 -05:00
jamelreid 5b63fa9a75 Merged trunk into add/post-external-smoke-test-results-to-pr 2021-12-20 10:51:04 -05:00
Greg 07a96e3aaa Swap out plugins 2021-12-16 13:32:43 -07:00
Greg 77bb3e958d Logic for private repos and minor tweaks 2021-12-16 09:58:11 -07:00
jamelreid 69f6850af0 Updated step condition 2021-12-15 17:48:33 -05:00
jamelreid e5c432e589 Updated TITLE env variable 2021-12-15 17:30:52 -05:00
jamelreid a24a9dcc7d Removed 'External' from step title 2021-12-14 12:53:52 -05:00
Jamel Noel Reid a560b4c524
Removed 'External' from Title
Co-authored-by: Ron Rennick <ron@ronandandrea.com>
2021-12-14 12:50:04 -05:00
Greg fba795421d Merge branch 'trunk' of github.com:woocommerce/woocommerce into add/plugin-upload-test-functionality 2021-12-13 15:45:32 -07:00
Greg c6cdf87aa7 Remove standalone run and add to smoke and release testing 2021-12-09 14:07:13 -07:00
Tam Mullen 108cb721dc
Merge pull request #30944 from woocommerce/try/gh-issue-forms
Try GitHub Issue Forms
2021-12-09 20:29:14 +00:00
Greg 9621e13de5 Run the plugin test on PR 2021-12-09 09:01:37 -07:00
Greg 4a577e9f1e Added some more plugins 2021-12-09 08:58:08 -07:00
Greg 44eedb0ee9 Run on trunk code 2021-12-08 17:23:00 -07:00
Greg 24f2f55742 Use a different syntax 2021-12-08 16:40:42 -07:00
Greg 287df6e10b Update workflow name 2021-12-08 15:58:58 -07:00
Greg 473c4e5279 Added upload and test functionality 2021-12-08 15:56:42 -07:00
jamelreid cbf8bfc1d0 Updated workflow to post test results to GitHub PR 2021-12-08 12:50:21 -05:00
Tam Mullen d738e5b3ce Adding link to votes needed issues. 2021-11-26 16:49:51 +00:00
Ron Rennick 207030ed9b remove stray quote in workflow action 2021-11-25 10:24:35 -04:00
roykho 22a1e0b2b5
Add path 2021-11-22 06:28:18 -08:00
roykho b88ec3a573
Add missing run command 2021-11-22 06:22:33 -08:00
roykho 549f8c5e9e
Update e2e path 2021-11-18 08:25:48 -08:00
roykho 19d26298ea
Merge branch 'trunk' into nx/gh-actions 2021-11-18 08:02:24 -08:00
roykho 9fbaca0a9d
Install dependencies again 2021-11-18 07:47:57 -08:00
roykho 7d6979905c
Use Nx commands for smoke test release action 2021-11-18 07:25:19 -08:00
roykho c39ab816d9
Use Nx commands for daily smoke test action 2021-11-18 07:23:30 -08:00
roykho 68b9e2896b
Install composer 2021-11-18 07:09:03 -08:00
roykho ce461d0c5b
Check directory 2021-11-18 06:56:55 -08:00
roykho 9b999deda0
Set path for unit test 2021-11-18 06:31:59 -08:00
roykho 2f4fa6e26c
Use Nx for unit tests action 2021-11-18 06:05:07 -08:00
roykho 4033121df7
Run npnx command 2021-11-17 12:25:33 -08:00
roykho d50855db29
Update working dir 2021-11-17 12:09:32 -08:00
roykho 3bd09dec8c
Use pnpx 2021-11-17 11:57:26 -08:00
roykho 79ee6c00f5
Create a seperate no dev composer install command 2021-11-17 11:32:53 -08:00
roykho 008f2cbea9
Change format of passing flags 2021-11-17 11:24:35 -08:00
roykho 8dda9990ff
Use native command 2021-11-17 10:29:43 -08:00
roykho 8aa2ade4ce
Update core path 2021-11-17 10:21:04 -08:00
roykho db3c0ded54
Install Nx for e2e 2021-11-17 10:07:17 -08:00
roykho feedced44b
Remove flags 2021-11-17 09:35:20 -08:00
roykho 131e1ae73b
Use correct command to install Jest 2021-11-17 09:11:53 -08:00
roykho 0657b44dd5
Move composer install script to Nx commands 2021-11-17 09:09:09 -08:00
roykho f15f75e9cf
No need to install Nx globally 2021-11-17 08:54:14 -08:00
roykho 24c565ba68
Add working directory 2021-11-17 08:39:05 -08:00
roykho bf2efa492a
Use Nx for code sniff action 2021-11-16 19:06:22 -08:00
roykho 142dcedc36
Use Nx commands for build and e2e tests 2021-11-16 18:32:08 -08:00
roykho f940d049d6
Use Nx commands for CI 2021-11-16 18:17:35 -08:00
roykho a56af927d9
Use trunk in our action-build step to be consistent 2021-11-16 17:55:56 -08:00
roykho 4b8d10c0e6
Remove grunt and install it higher up 2021-11-16 14:27:03 -08:00
roykho e9a6520214
Install Grunt 2021-11-16 12:15:46 -08:00
Greg aa5e0d6c4b Move run command onto single line 2021-11-16 09:03:50 -07:00
Greg 6849bf9796 Run API tests in their own job 2021-11-16 08:45:12 -07:00
roykho 6f0bba9e23
Use Nx commands in pr-code-coverage action 2021-11-16 07:26:33 -08:00
Tam Mullen b5eba41a44 Updated issue forms for documentation URL changes and PR Feedback 2021-11-11 21:13:08 +00:00
Paul Sealock ba87a69d6f
Build Core (#31117) 2021-11-11 15:13:08 +13:00
Paul Sealock a22de18f3f
Mirror Core to production repo (#31073) 2021-11-11 11:04:36 +13:00
Ron Rennick efe7e4f8ba
Merge pull request #31010 from woocommerce/add/run-api-tests-on-pr
Run API tests on PR with e2e tests
2021-11-05 09:12:26 -03:00
Claudio Sanches 77ccfc56ca
Merge pull request #31081 from woocommerce/fix-nightly-builds
Use trunk version of action-build
2021-11-04 19:37:11 -03:00
jonathansadowski 49771e6e1b
Merge pull request #31074 from woocommerce/pr-smoke-test
Update smoke test on PR to use pnpm
2021-11-03 10:40:15 -05:00
roykho 98fb5cafaa
Use trunk version of action-build 2021-11-03 08:19:22 -07:00
Greg 9df1b119c6
Merge branch 'trunk' into add/run-api-tests-on-pr 2021-11-03 08:47:30 -06:00
roykho 9622643c2e
Update smoke test to use PNPM and update paths 2021-11-03 06:24:18 -07:00
roykho d977a00ae5
Add in working dir for actual test 2021-11-02 18:26:44 -07:00
roykho ffd31b6376
Ref trunk 2021-11-02 18:16:06 -07:00
roykho b9d58359dd
Update smoke test on PR to use pnpm 2021-11-02 18:08:32 -07:00
roykho 9ac16a0a00
Revert testing dispatch trigger and update correct path 2021-11-02 14:02:49 -07:00
roykho 407d3b2ef7
Update e2e test pattern 2021-11-02 09:40:11 -07:00
roykho c2c65586e7
Remove running of docker 2021-11-02 09:17:15 -07:00
roykho 9ccbf5fdd5
Run docker 2021-11-02 08:36:17 -07:00
roykho 9356c1c230
Daily smoke test reinstate pattern 2021-11-01 21:51:31 -07:00
roykho 01117a2417
Add bck working directory so wc-e2e package is present 2021-11-01 21:09:52 -07:00
roykho bb27fde3d1
Update daily smoke test pattern 2021-11-01 21:03:05 -07:00
roykho 06d241daf2
Update daily smoke test prereq install path 2021-11-01 20:49:52 -07:00
roykho 5ee6461dd8
Added a manual trigger just to test 2021-11-01 18:36:49 -07:00
roykho ac6de4e77b
Use pnpm and update some paths 2021-11-01 18:30:17 -07:00
Greg a28840b1d9 Merge branch 'trunk' of github.com:woocommerce/woocommerce into add/run-api-tests-on-pr
# Conflicts:
#	.github/workflows/pr-build-and-e2e-tests.yml
#	plugins/woocommerce/tests/e2e/core-tests/specs/merchant/wp-admin-product-import-csv.test.js
2021-10-29 15:31:48 -06:00
Paul Sealock 789d942f89
Update e2e package locations and add PNPM (#30977) 2021-10-29 08:32:31 +13:00
Greg 8dac5b9a9d Added cleanup for product tags, attributes, and categories 2021-10-22 15:35:29 -06:00
Greg 3579e151e1 Run API tests first 2021-10-21 16:07:34 -06:00
Greg fd7251a780 Add in secrets 2021-10-21 10:28:52 -06:00
Greg 1373848fd8 Run API tests on PR with e2e tests 2021-10-21 09:55:48 -06:00
Paul Sealock ffa595ac40 add working directory path to build workflow 2021-10-19 10:46:11 +13:00
roykho 27127ea1fc Fix directory path for CI workflow 2021-10-19 10:35:47 +13:00
roykho d82b422f37 Add default directory to unit tests 2021-10-19 10:35:46 +13:00
roykho 2193082c01 Add default working directory 2021-10-19 10:35:46 +13:00
roykho e01ac7f1fb Add default path to work with 2021-10-19 10:35:46 +13:00
roykho 309468ff19 Add more paths for more steps 2021-10-19 10:35:46 +13:00
roykho 54e922a07b Update workflow code coverage path 2021-10-19 10:35:46 +13:00
Tam Mullen 1c63425ad6 Updated URLs in issue form templates 2021-10-15 20:13:12 +01:00
Tam Mullen a71b5ebe71 Adding initial issue templates for use with GitHub Issue Forms 2021-10-15 12:03:35 +01:00
Greg 923cfdbbf1 Use release Slack channel 2021-10-01 10:13:35 -06:00
Greg 0bd549de3c Move env variable 2021-10-01 10:13:03 -06:00
Greg 92403b3e25 Added WP l minus 2 testing on release 2021-10-01 10:08:55 -06:00
Greg 7dfff3da2e Merge branch 'trunk' of https://github.com/woocommerce/woocommerce into add/pr-smoke-test-workflow 2021-09-24 14:28:52 -06:00
Greg 54a11300a2 Update remove label logic. 2021-09-24 14:28:36 -06:00
Greg affb99cae6 Use original if always check 2021-09-23 09:24:16 -06:00
Ron Rennick c15bf28b22
Merge pull request #30684 from woocommerce/add/api-test-script-scheduled-run
Run API tests with regular run and add script
2021-09-23 10:36:21 -03:00
Greg cf32051f0e Update if check 2021-09-22 18:08:51 -06:00
Greg 7a2ba8800a Add safer if check 2021-09-22 15:56:53 -06:00
Greg 299a6b5ca2 Use name instead of labels array 2021-09-20 17:43:53 -06:00
Greg c507ec535b Run label removal always 2021-09-20 14:30:10 -06:00
Greg c728b97603 Rename workflow 2021-09-20 13:05:45 -06:00
Greg 96fae311cb Use step instead of notify and rename step 2021-09-20 13:05:04 -06:00
Greg e3f1689e35 Add missing runs on 2021-09-20 11:18:40 -06:00
Greg f5ab77aa3e Remove label after run 2021-09-20 11:16:24 -06:00
Greg 30bbedcb2f
Update .github/workflows/pr-smoke-test.yml
Co-authored-by: Ron Rennick <ron@ronandandrea.com>
2021-09-20 10:29:02 -06:00
Greg 4707f48769 Added workflow for running smoke tests on PR 2021-09-10 15:24:24 -06:00
Greg 323a316bd3 Add release slack channel 2021-09-09 14:26:28 -06:00
Greg e09b43f099 Code review feedback 2021-09-09 12:23:23 -06:00
Greg edb10107cf Run API tests with regular run and add script 2021-09-09 08:41:36 -06:00
Nestor Soriano 0ae984e6cc
Fix unit tests failing in PHP 8 in CI
The problem was that PHP 8 requires setting up a different version of
PHPUnit, and after doing that two versions were in place, one in
'vendor/phpunit' and another one in 'bin/composer/phpunit'; the
autoloader was picking the former but it should pick the later.
2021-08-24 15:36:06 +02:00
Greg 2f0aa1a30f Added default timeout override 2021-08-12 16:05:55 -06:00
Greg 32993b8aaf
Merge pull request #30456 from woocommerce/add/stalebot-enhancement-check
filter out enhancement requests from stalebot
2021-08-11 14:06:34 -06:00
Greg c64f383ba7 Use smoke test Slack channel for now 2021-08-10 20:40:27 -06:00
Greg a597edd6b0 Added in GitHub workflow 2021-08-10 20:38:41 -06:00
Barry Hughes ca42736336
Merge pull request #30433 from woocommerce/update/min-wp
Set "Requires at least" to WP 5.6, update testing matrix.
2021-08-09 11:30:27 -07:00
Claudio Sanches 37068f198f Improve continue on error 2021-08-09 13:55:53 -03:00
Claudio Sanches 175cc34ee7 Allow failures for WP nightly unit tests 2021-08-09 13:41:53 -03:00
Claudio Sanches 9a9a855701 Update conditional 2021-08-09 13:22:01 -03:00
Claudio Sanches ef9f511387 Run composer update for wp nightly 2021-08-09 13:00:29 -03:00
Ron Rennick 9892fe6f43 filter out enhancement requests from stalebot 2021-08-09 12:42:26 -03:00
Claudio Sanches 4fea3f4dc1 Update unit test WP matrix 2021-08-09 12:33:39 -03:00
Greg 8ccbbab8ab Added admin email config override 2021-08-05 19:39:30 -06:00
Nestor Soriano 6fb769bc9d
Refactor the PR post-merge processing GitHub action
Common code has been extracted to a "post-request-shared.php" script.
2021-08-03 11:33:33 +02:00
Nestor Soriano b3617a3115
Extend post-merge GH action to add a comment suggestion next steps. 2021-08-03 10:07:24 +02:00
roykho bdbd97fa9d
Add task instructions for the PR reviewer 2021-07-30 10:02:16 -07:00
Nestor Soriano 9ffddbac1f
Use 'pull_request_target' in the automatic milestoning action
The original event used, 'pull_request', runs in the context of the
pull request. In the case of pull requests created from forks this means
that a read-only GitHub token is used for API calls, and thus the
call used to assign the milestone fails.

The fix is using the 'pull_request_target' event, which runs in the
context of the base branch, and thus with a read-write token. See:
https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target

Also, added a warning message when no milestone without a release
branch is found and thus the newest existing milestone is assigned
(this is a fallback that should normally not happen).
2021-07-29 16:47:27 +02:00
Nestor Soriano 68fcfa9cf6
Add logging to the GH action for assigning a milestone to merged PRs
If the GH API call to assign the milestone to a merged PR returns an
error, the data returned from the call will be dumped to the console,
and thus will be readable by looking at the action execution log.
2021-07-28 15:20:16 +02:00
Greg d062a76a2c Code review feedback 2021-07-21 10:22:50 -06:00
Greg f31693aaec Add in env flag 2021-07-20 15:26:51 -06:00
Greg 17eb1ddd22 Merge branch 'trunk' of github.com:woocommerce/woocommerce into add/plugin-upload-flow 2021-07-20 13:57:04 -06:00
Greg 268c07118e Added plugin upload functionality 2021-07-15 14:39:32 -06:00
Martin Winkel 9467260e5f fixed a typo in the bug issue template of github 2021-06-30 17:10:10 +02:00
Ron Rennick 7806ea2b5d
update remove stale on comment (#29882)
* remove the stale label when feedback is provided

* remove labels in separate steps
2021-05-13 14:25:14 +02:00
Ron Rennick 1ba0e6d382
update stale to Stale in feedback label CI (#29871) 2021-05-10 17:19:06 +02:00
Ron Rennick afa1ba573d
remove local container from smoke test (#29828) 2021-05-10 15:49:32 +02:00
Ron Rennick bcebdad06d
remove the stale label when feedback is provided (#29829) 2021-05-10 15:08:46 +02:00
Vedanshu Jain 09798c081c
Merge pull request #29699 from woocommerce/add/github-action-to-auto-assign-milestone
Add a GitHub action for automatic assignment of a milestone to merged PRs
2021-04-19 18:25:30 +05:30
Néstor Soriano 3ada9fc562
Change GH API query for milestones to get only the open ones.
Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2021-04-19 14:46:45 +02:00
Néstor Soriano 5da39b4ff0
Enclose action step name in double quotes for consistency.
Co-authored-by: Leif Singer <git@singer.sh>
2021-04-16 15:48:38 +02:00
Nestor Soriano b09ddd7984
Add a GitHub action to manually trigger the generation of a release zip file 2021-04-16 13:06:49 +02:00
Nestor Soriano a0c965964b
Add a GitHub action for automatic assignment of milestone to merged PRs
The milestone is chosen as follows:
1. List all the open milestones with a title of "X.Y.Z"
2. Sort them desc using verson_compare
3. foreach them in order, and take the last one not having a
   corresponding release branch ("release/X.Y")
2021-04-15 17:16:00 +02:00
Greg b19500728b
Merge pull request #29653 from woocommerce/fix/28485
Enable smoke test
2021-04-14 16:09:26 -06:00
Ron Rennick 07f72c80b4
fix spacing
Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>
2021-04-13 08:25:22 -03:00
Ron Rennick a88bc666de enable smoke test 2021-04-12 13:32:38 -03:00
Ron Rennick cea88305a7 enable stalebot 2021-04-12 10:55:30 -03:00
Ron Rennick af698acc8e
Merge pull request #29509 from woocommerce/add/feedback-label-action
add contributor feedback label action
2021-04-07 22:55:20 -03:00
Ron Rennick 1affe03ac6 add conditions for github actions and open issues 2021-04-07 17:25:26 -03:00
Greg 6d02a3d375
Merge pull request #29600 from woocommerce/fix/smoke-test-schedule
Fix tranposed cron schedule
2021-04-06 07:59:41 -06:00
Ron Rennick 1f919d3681 fix tranposed cron schedule 2021-04-06 08:18:45 -03:00
Ron Rennick 6f80b55617 fix transposed cron schedule, change process order 2021-04-05 18:16:12 -03:00
Greg 5aeafe56eb
Merge pull request #29571 from woocommerce/add/smoke-test-daily
add smoke test daily log in
2021-04-05 13:32:22 -06:00
Ron Rennick 9355c92231 add smoke test daily log in 2021-04-01 21:55:38 -03:00
Ron Rennick 3096014057 fix typo in stalebot parameter name 2021-04-01 14:54:59 -03:00
Ron Rennick 85893dd018 Merge branch 'trunk' into add/feedback-label-action 2021-04-01 14:47:57 -03:00
Ron Rennick 18c500c24f add contributor feedback label action 2021-03-26 16:33:44 -03:00
Ron Rennick 214ca384ea add stalebot action with dry run enabled 2021-03-26 14:29:53 -03:00
Claudio Sanches dd57663274
Merge pull request #29371 from woocommerce/add/trigger-code-reference-update
Update code reference after release build is done
2021-03-24 18:39:02 -03:00
Néstor Soriano 886cd15016
Merge pull request #29378 from woocommerce/fix/code-sniff
Remove Travis and fix CI in GitHub Actions
2021-03-23 15:22:49 +01:00
Claudio Sanches 599f2e95ca Stop nightly builds in forks.
Nightly builds workflow requires a GitHub release ID that doesn't exists
in forks, making it to always fail.
2021-03-15 21:44:01 -03:00
Ron Rennick 7759e3a16d unpin WP version in E2E test run 2021-03-15 13:43:15 -03:00
Claudio Sanches 4e893022a0 Fixed Codecov integration and moved into a new step 2021-03-13 22:08:46 -03:00
Claudio Sanches 16823082aa Removed Travis 2021-03-13 21:58:42 -03:00
Claudio Sanches 87a18620eb Added workflow to run CI in trunk and release/** branches 2021-03-13 21:29:15 -03:00
Claudio Sanches 75ed94bd38 Fixed PHPCS run and added cs2pr support 2021-03-13 21:01:21 -03:00
Claudio Sanches e0040a1a4e Remove mysql from code sniff workflow 2021-03-13 19:42:06 -03:00
Claudio Sanches 7c23eb1e33 Update code reference after release build is done 2021-03-12 23:17:27 -03:00
Ron Rennick 698fdc3712 Merge branch 'trunk' into try/add-e2e-screenshot 2021-03-12 12:00:24 -04:00
Ron Rennick 874748cf20 pin ubuntu to 18.04 for port 8084 2021-03-12 09:39:44 -04:00
vedanshujain 934243d8bd Remove node_modules caching to prevent dir related errors. 2021-03-12 09:54:37 +05:30
Ron Rennick cad8ae3413 temporarily pin WP version to 5.6.2 2021-03-11 15:27:46 -04:00
Ron Rennick ac94f70a16 update secret names with E2E_ 2021-03-10 14:51:18 -04:00
Ron Rennick bb907a6acd add slack secrets, deliberately break test 2021-03-09 16:11:48 -04:00
Ron Rennick 4c88973039 add slack channel support 2021-03-08 19:22:55 -04:00
vedanshujain a53bb20a62 Disable comment workflow since it fails on fork. 2021-03-01 17:35:49 +05:30
Claudio Sanches d6e3cf6de9 Update default GIT branch 2021-02-25 20:51:14 -03:00
barryhughes 4a78f13958 Spacing 2021-02-16 12:43:18 -08:00
barryhughes 97c4e42610 Correct the external packages list (remove REST API, add WC Admin) | spotfix 2021-02-16 12:40:27 -08:00
vedanshujain eefb3a4c0d Yoda notation, you must not follow.
Syntax will fail, for GH actions.
2021-02-16 13:23:27 +05:30
vedanshujain f31befd6fe Whitespace change to trigger tests. 2021-02-16 13:14:08 +05:30
vedanshujain 4a39b00a2e Run build action only for WC PRs because forks wont have permission to post comment. 2021-02-09 16:20:00 +05:30
vedanshujain 8963755442 Use bash instead of sh 2021-02-09 16:15:48 +05:30
vedanshujain 3e0fc5e89b Add CI for code coverage and code sniff on GitHub actions. 2021-02-09 16:09:56 +05:30
vedanshujain dc865bc94d Renamed file name to be more accurate. 2021-02-01 09:56:51 +05:30
vedanshujain d6d1e6a473 More strict cache keys. 2021-01-29 17:19:29 +05:30
vedanshujain 64b066eb22 Convert logic from string to bool to see if that works. 2021-01-29 16:45:14 +05:30
vedanshujain bc4228ae7f Add caching for node modules. 2021-01-29 16:32:34 +05:30
vedanshujain 783cb4b63c Add action for running e2e tests. 2021-01-29 16:26:03 +05:30
Claudio Sanches 615bcfdbc2 Fixed repository URL 2021-01-22 00:18:07 -03:00
Claudio Sanches bac26b82b9 Fixed params 2021-01-21 23:54:00 -03:00
Claudio Sanches 56ee106f34 Add new message 2021-01-21 23:49:33 -03:00
Claudio Sanches 64f9b8e4b5 Introduced "add comment" step to pr-build workflow 2021-01-21 22:51:15 -03:00
vedanshujain cf6cf3a35e Split builds into different files. 2021-01-21 17:35:12 +05:30
Vedanshu Jain 06c8fb0c45 Adds a workflow to be triggered when a PR is creted/updated:
1. Build a zip file for that PR.
2. Migrate all unit tests from Travis to Github Actions.
2021-01-21 17:30:12 +05:30
Peter Fabian 75754d5281
Update CONTRIBUTING.md
Fixed the link to GH ideas board.
2020-12-18 12:28:50 +01:00