Commit Graph

565 Commits

Author SHA1 Message Date
Roy Ho 4ac7ea4518
Merge pull request #33075 from woocommerce/dev/resuable-actions
Add composite install and build action
2022-05-18 06:33:19 -07:00
roykho c3fa0f5d04
Add workflow dispatch functions 2022-05-17 12:29:16 -07:00
roykho 1042f22cf8
Extract cache and build to rest of workflows 2022-05-17 11:48:24 -07:00
roykho f4cf7899e7
Extract out caching step 2022-05-17 09:26:08 -07:00
roykho dbc86cb89e
Revert phpcs changes 2022-05-17 08:40:39 -07:00
roykho dac4993295
Try fetch-depth 2 on PHPCS 2022-05-17 08:32:33 -07:00
roykho 08892b3d9f
Test code sniff fetch depth 1 2022-05-17 08:27:47 -07:00
roykho 916c285bc5
Remove redundant checkout step 2022-05-17 07:21:39 -07:00
roykho 07d401c453
Add shell property 2022-05-17 06:45:50 -07:00
roykho fa47ab3f8e
Add composite install and build action 2022-05-17 06:24:49 -07:00
roykho 73ba1e591f
Add composite install and build action 2022-05-17 06:20:23 -07:00
Claudio Sanches 2f4f8277bf
CLI tool and GH workflow to highlight PR changes (#32063) 2022-05-17 13:47:17 +12:00
jonathansadowski 779ce5c23e
Merge pull request #33038 from woocommerce/update/workflow-cache
Cache Composer global store
2022-05-16 10:22:12 -05:00
roykho 7056cf93b6
Add additional pnpm cache dir 2022-05-16 06:01:53 -07:00
rodelgc 6cda659980
Publish API test reports to GitHub Pages
- Added workflow to publish API tests
2022-05-16 17:59:40 +08:00
roykho cf5c47eb09
Cache Composer global store 2022-05-13 13:43:33 -07:00
jonathansadowski 44196c47e2
Merge pull request #32984 from woocommerce/fix/mirror-workflow
Copy file to correct path
2022-05-13 08:46:28 -05:00
roykho a9d67a0502
Copy file to correct path 2022-05-12 09:13:45 -07:00
roykho 8f9957f0d4
Fix smoke test on release 2022-05-12 07:12:29 -07:00
Roy Ho 8756a7df14
Revert "Copy composer.json to a different path" 2022-05-11 06:46:19 -07:00
roykho aa2cfeabc4
Copy composer.json to a different path 2022-05-10 13:22:59 -07:00
Paul Sealock 635e3f6449
PR Template: Remove suggestion to use affected for changelogs (#32890)
* Remove suggestion to use affected for changelogs

* Update message in changelogger validation
2022-05-11 07:49:23 +12:00
roykho 36656e9c3d
Move copy of composer.json step to after unzipping 2022-05-09 08:23:48 -07:00
roykho ab58263e80
Add unique secrets cache key to enable clearing of cache 2022-05-04 15:20:31 -07:00
roykho a632ca67fd
Lock build script php version environment for consistency 2022-05-03 14:04:52 -07:00
roykho 65aebd1e44
Use prevent double zip script 2022-05-03 14:04:03 -07:00
Christopher Allford 790d085f12
Merge pull request #32657 from woocommerce/refactor/standardize-postinstall
Utilize `post install` Script for Composer
2022-05-03 10:21:33 -07:00
Roy Ho 1ed5445635
Update workflows to run build zip script (#32825) 2022-05-03 11:48:20 +12:00
Christopher Allford 84334c149b Fixed Linting Errors 2022-05-02 12:55:48 -07:00
roykho 45a036f35b
Match minor and patch 2022-05-02 10:08:52 -07:00
roykho f2e4a686f1
Lock pnpm to specific version 2022-05-02 09:39:40 -07:00
roykho 6f61dd8088
Update cache paths 2022-04-27 09:05:01 -07:00
roykho e1499a1772
Update port 2022-04-27 07:45:10 -07:00
roykho 6a447065d8
Fix paths and cache composer 2022-04-27 07:29:33 -07:00
roykho e5bdd3fcd3
Refactor workflows to remove action-build step 2022-04-27 06:40:37 -07:00
roykho 57c1c0bc1c
Freeze Ubuntu release to 20.04 for best practice and consistency 2022-04-26 18:28:56 -07:00
roykho d6a1f7212c
Remove comment 2022-04-26 08:20:32 -07:00
roykho 7640715150
Test cached results 2022-04-26 08:04:20 -07:00
roykho fc705cff77
Use glob pattern for hash key 2022-04-26 07:47:50 -07:00
roykho c78577ee22
Remove comment to test cached Composer Unit tests 2022-04-26 07:28:20 -07:00
roykho bd096a6edc
Use glob pattern to cache multiple nested Composer vendor paths 2022-04-26 07:07:15 -07:00
jonathansadowski 4a19efc739
Merge pull request #32725 from woocommerce/workflow/caching-3
Refactor caching for workflows
2022-04-21 16:56:23 -05:00
Jon Lane 20befd32d7 Update Slack Channel IDs for workflows 2022-04-21 13:04:31 -07:00
Jonathan Lane ca54907267
Merge pull request #32684 from woocommerce/add/smoke-test-daily-site-checker
Adding workflow to check status of site used for daily smoke tests.
2022-04-21 12:07:05 -07:00
roykho 3f4c2060dd
Clean up and bump versions 2022-04-21 11:46:30 -07:00
roykho 6e5d61da0b
Test pr smoke test workflow 2022-04-21 11:29:53 -07:00
Roy Ho 018da05414
Merge branch 'trunk' into workflow/caching-3 2022-04-21 10:29:24 -07:00
Joel Thiessen 6f4bb7050d
Merge pull request #32528 from woocommerce/update/32508_pnpx_deprecated
Updating all instances of now-deprecated `pnpx` to `pnpm dlx`
2022-04-21 10:16:31 -07:00
roykho bd23093c42
Refactor caching for workflows 2022-04-21 09:45:12 -07:00
Tam Mullen 28de46f9ef Updated site check trigger to be daily on cron after smoke tests have finished 2022-04-19 11:03:13 +01:00
Tam Mullen c7c8775a49 Adding workflow to check status of site used for daily smoke tests. 2022-04-18 19:30:06 +01:00
Chi-Hsuan Huang 863316ade7
Merge pull request #32518 from woocommerce/update/32516-woocommerce-admin-links
Update woocommerce-admin links to point to woocommerce repo
2022-04-14 13:40:25 +08:00
Joel Thiessen 0a0c6b45cf
Merge branch 'trunk' into update/32508_pnpx_deprecated 2022-04-13 12:35:29 -07:00
Jonathan Sadowski bf6b16972c Update PR template and post-merge comment for changelogger 2022-04-13 10:16:33 -05:00
Chi-Hsuan Huang 630611b668
Update .github/CONTRIBUTING.md
Co-authored-by: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com>
2022-04-13 12:37:17 +08:00
Jonathan Sadowski 33981358b6 Fetch more git history for changelogger comparison 2022-04-11 10:50:03 -05:00
Joel T 1c162a14d2 Updating all instances of pnpx to pnpm dlx/exec 2022-04-07 17:52:05 -07:00
Chi-Hsuan Huang 3fc88f0a71 Update links of woocommerce-admin to https://github.com/woocommerce/woocommerce 2022-04-07 17:02:43 +08:00
Paul Sealock ab673dd14b Call Core's script from root level 2022-04-06 15:27:37 +12:00
jonathansadowski 90a545b013
Merge pull request #32450 from woocommerce/add/changelogger-validation
Add changelogger validation.
2022-04-05 14:11:33 -05:00
Jonathan Sadowski 3f05bdb90a Fix typo on git workflow description and filename 2022-04-04 13:29:44 -05:00
Jonathan Sadowski 28c31b7c38 Move changelogger-specific workflow to a linting workflow for monorepo 2022-04-04 13:23:12 -05:00
Jamel Noel Reid 8812feedaa
Merge pull request #32419 from woocommerce/e2e/db-healthcheck
Only start PHP containers after a successful healthcheck against DB
2022-04-04 04:09:24 -05:00
Jonathan Sadowski b997f18dd8 Add newline to EOF 2022-04-01 13:12:16 -05:00
jonathansadowski d062f2e5fa
Merge pull request #32366 from woocommerce/action/template
Add GH action to request template
2022-04-01 09:00:02 -05:00
Lucas Bustamante c4fede5c43 Wait as part of the up process 2022-04-01 14:32:50 +01:00
Lucas Bustamante d6a37a490e Merge branch 'trunk' into e2e/db-healthcheck 2022-04-01 11:53:55 +01:00
Jonathan Sadowski 2c4e373192 Fix github action and correct error in detecting change file 2022-03-31 21:53:12 -05:00
Jonathan Sadowski e87cd7128b Add github workflow 2022-03-31 21:24:22 -05:00
rodelgc 989f50daa3
GH Action for generating reports in CI (#32375)
Added: CI job to upload API test reports on PR events.
2022-04-01 10:24:09 +08:00
jamelreid ecb10f3908 Moved workaround step 2022-03-31 17:55:14 -05:00
jamelreid b99f0c6958 Removed unnecesssary installs 2022-03-31 17:33:28 -05:00
jamelreid 03d58e911d Changed docker up order 2022-03-31 17:08:52 -05:00
jamelreid 1b0405d81e Changed docker up order 2022-03-31 16:53:27 -05:00
jamelreid f381d6a583 Moved wait to docker up step 2022-03-31 14:07:17 -05:00
jamelreid 470ab7786e Added wait for api tests 2022-03-31 12:24:43 -05:00
roykho f08f58e241
Add additional checks for a label and targetting trunk 2022-03-31 06:41:18 -07:00
Moon 9e1d11abdf
Merge pull request #32409 from woocommerce/fix/code-coverage
Fix broken code coverage
2022-03-29 22:14:04 -07:00
Chi-Hsuan Huang 0be52342b7
Merge pull request #32372 from woocommerce/add/test-lint-js-action
Add lint-test JS Github action
2022-03-30 10:23:50 +08:00
moon 6faba12094 Increase code coverage job timeout to 20 mins 2022-03-29 17:27:07 -07:00
Barry Hughes a98aa9c910
Merge pull request #32112 from woocommerce/bump-required-php-to-7.2
Bump WooCommerce minimum required PHP version to 7.2
2022-03-29 09:03:42 -07:00
louwie17 59c4bf0831
Merge pull request #32389 from woocommerce/dev/32355_add_screenshot_artifact
Add archive E2E screenshots step for E2E tests task
2022-03-29 08:50:23 -03:00
Nestor Soriano 25bf59d5e7
Merge branch 'trunk' into bump-required-php-to-7.2 2022-03-29 10:45:07 +02:00
Chi-Hsuan Huang 9a4138846d Add a empty line between steps for pr-project-label.yml 2022-03-29 16:43:19 +08:00
Chi-Hsuan Huang 71350b4e8b Change script lint:js:packages to lint:js-packages 2022-03-29 16:38:26 +08:00
Chi-Hsuan Huang adf11a9801 Add action name for pr-lint-test-js.yml 2022-03-29 16:38:06 +08:00
Chi-Hsuan Huang 025774d0c8 Update lint test action steps
Fix lint command

Update step name
2022-03-29 16:38:06 +08:00
Chi-Hsuan Huang 4baad1a6e3 Add pr-lint-test-js.yml and remove package-js-api.yml, js_lint_test.sh 2022-03-29 16:38:06 +08:00
Chi-Hsuan Huang eb4c0a751e Add Cancel Previous Runs step to pr-* github actions 2022-03-29 11:53:58 +08:00
RJ fd3b73d46f
Merge pull request #32373 from woocommerce/dev/remove-wca-from-issue-template
Removed separate WCA entry in .github issue template contact_link
2022-03-29 10:40:26 +08:00
Christopher Allford 14e852b4b2
Merge WooCommerce Admin Unit Tests (#32287)
This folds the unit tests from WooCommerce Admin into the core test suite, enabling them to run.
2022-03-28 12:53:33 -07:00
Lourens Schep 0fd9aa2466 Remove unsupported working-directory param 2022-03-28 13:31:34 -03:00
Lourens Schep 259bb44f99 Move uses param up to solve workflow parse error 2022-03-28 13:28:37 -03:00
Lourens Schep aea8e95692 Update if condition 2022-03-28 13:23:15 -03:00
Lourens Schep 35acdfc081 Add archive E2E screenshots step for E2E tests task 2022-03-28 13:13:43 -03:00
RJ 75c3f140ed
Removed separate WCA entry in issue template contact_link
Misleading, now that WCA is in this repo
2022-03-28 15:30:13 +08:00
roykho 07aa05bc16
Add GH action to request template 2022-03-25 09:37:06 -07:00
Claudio Sanches 9448982f5f
Merge pull request #32324 from woocommerce/fix/action-label
Make sure the reply is from issue author before triggering
2022-03-25 00:42:00 -03:00
Nestor Soriano 819494f2ed
Bump WooCommerce minimum required PHP version to 7.2
This includes:

- Changing "Requires PHP" in woocommerce.php
- Changing "require-php" and "config-platform-php" in composer.json
- Bumping pelago/emogrifier to ^6.0 in composer.json
- Bumping maxmind-db/reader to ^1.6 in composer.json
- Bumping composer/installers to ^1.9 in composer.json
  (bump to 2.0 not possible due to conflict with Admin package)
- Removing jobs for 7.0/.1 unit test runs in CI
- Explicitly specifying the PHPUnit version to be 7.5,
  otherwise it will install v8 which isn't compatible with
  WordPress <5.9
2022-03-24 14:08:11 +01:00
Chi-Hsuan Huang a720ccb42a Add "Build Admin feature config" step to ci.yml 2022-03-24 14:00:43 +08:00
roykho d346630747
Make sure the reply is from issue author before triggering 2022-03-22 08:53:16 -07:00
Lourens Schep 268a3e9e61 Add feature config build step to code coverage task 2022-03-21 16:05:45 -03:00
Lourens Schep d0ff85158e Run feature config from main working directory 2022-03-21 15:09:13 -03:00
Lourens Schep f82d3b7301 Remove feature config from repo and add it to the gitignore 2022-03-21 14:49:44 -03:00
Moon fd2f7909ef Add WCA packages 2022-03-18 14:46:50 -07:00
Christopher Allford ba213dc845
Added WooCommerce Admin Auto-Labeling
This commit adds paths for automatically labeling WooCommerce Admin content.
2022-03-18 13:54:16 -07:00
roykho f8b76b7662
Enclose in double quotes and use correct ticks 2022-03-18 07:30:40 -07:00
Jorge A. Torres ca7bedd249
Merge pull request #31987 from woocommerce/fix/internal-links-in-readmes
Fix internal links in README files
2022-03-15 15:38:46 -05:00
Jorge A. Torres 80b1ea2b34
Correct "good first issue" link 2022-03-15 14:50:52 -05:00
Nestor Soriano 904ec4343c
Fix misc links in READMEs and GitHub templates. 2022-03-15 16:01:12 +01:00
Felipe Santos a8679b041d
Update the WP version for tests and WooCommerce 2022-03-03 11:38:27 +00:00
Lucas Bustamante d68b6d7777
Run @woocommerce/api tests in CI (#31931)
* Run @woocommerce/api tests in CI

* CR: Remove "paths-ignore"

* Trigger CI

* Remove description from yml

* Trigger CI

* Trigger CI

* Remove trigger CI
2022-02-28 12:04:47 +08:00
jonathansadowski 1cc61de404
Merge pull request #31873 from woocommerce/add/release-code-freeze
Add github workflow to automatically enforce the code freeze.
2022-02-25 16:14:49 -06:00
Jonathan Sadowski ad201cde88 Improve messaging when milestone or release branch already exist 2022-02-25 15:02:15 -06:00
Jonathan Sadowski 439ae1f17b Update code-freeze script to base its decision on latest release 2022-02-25 12:22:07 -06:00
Nestor Soriano 32e01a21f2
Fix internal links in README files
After the WooCommerce code was moved to 'plugins/woocommerce' many of
the internal links in the README files (links to other README files
or to code files) were broken. This commit fixes that.
2022-02-25 11:27:58 +01:00
Christopher Allford aae02d6872
Added Triage Label to Enhancements 2022-02-24 10:31:07 -08:00
Christopher Allford 8dffe885c6
Expanded Project Label Action Permissions
With the `pull_request_target` event, it will have
the write permissions needed to add labels.
2022-02-22 10:05:27 -08:00
Christopher Allford 91442cd5d1
Limited Post-Merge Comment
Since this is for the WooCommerce release process,
we should only trigger it for the Core plugin.
2022-02-22 10:04:33 -08:00
Christopher Allford 21ed16c24b
Fixed Project Labeler Matches 2022-02-21 14:59:50 -08:00
Christopher Allford e8096a7ac2
Fixed PR Labeler Workflow Syntax 2022-02-21 14:32:37 -08:00
Christopher Allford fb1f86b69a Added Project Label Workflow
This workflow should automatically label a
pull request based on the code being
touched.
2022-02-21 14:26:46 -08:00
Christopher Allford 396fbe12bd
Inverted Triage Workflow Check 2022-02-18 12:43:00 -08:00
Christopher Allford b8293e4216
Fixed Triage Label Check
This (hopefully) corrects the label presence check. The goal is to avoid applying the triage label when an issue is created with a label.
2022-02-18 12:41:47 -08:00
Christopher Allford bacfee1614
Added Triage Label Workflow
This workflow (should) automatically add the `status: awaiting triage` label when issues are created.
The workflow won't trigger if a label is applied when the issue is created.
2022-02-18 12:35:24 -08:00
Christopher Allford b954f3eb67
Updated Stale Label
The default 'Stale' label needs replaced with the one we use in the repository.
2022-02-18 12:11:30 -08:00
Ron Rennick 101347788f
Merge pull request #31921 from woocommerce/try/k6-run-ci-onpr
Run k6 tests on PR after e2e and API
2022-02-18 10:55:31 -04:00
Tam Mullen 06bb16bcfd Add k6 tests to the existing PR build and test action 2022-02-17 21:45:21 +00:00
Claudio Sanches 6a1a0b7681 Check for owner and repo 2022-02-17 18:16:32 -03:00
Claudio Sanches d5624db5ea Check if workflow is running inside a Woo org
Fixes coding standards
2022-02-17 16:11:10 -03:00
Barry Hughes 31884d9052
Update wording. 2022-02-17 09:06:29 -08:00
barryhughes a5a712fbd0 Update references to labels in the post merge commit. 2022-02-16 15:39:20 -08:00
Ron Rennick 8423b3b992
Merge pull request #31834 from woocommerce/fix/31833
Fix failing smoke tests when a new release candidate is published
2022-02-16 16:47:45 -04:00
Christopher Allford 265be6b514
Applied label changes 2022-02-15 20:50:40 -08:00
Christopher Allford 78912b9c8c
Applied label changes 2022-02-15 20:48:25 -08:00
Christopher Allford 73e0d276c2
Fixed votes label 2022-02-15 20:45:20 -08:00
Christopher Allford cd426fcc5a
Updated labels in automatic issue replies 2022-02-15 20:43:43 -08:00
Jonathan Sadowski 49915391d0 Update newlines to PHP_EOL in post-request-shared.php 2022-02-11 08:32:29 -06:00
jamelreid 79a3e8f7ba Fixed typo 2022-02-10 15:22:03 -05:00
Jonathan Sadowski 18a5d3a751 Remove confusing trailing dots near version numbers; use PHP_EOL; add newline to EOF 2022-02-10 08:51:26 -06:00
Jonathan Sadowski 757209ba37 Add github workflow to automatically enforce the code freeze. 2022-02-09 13:43:05 -06:00
jamelreid bd14664ef4 Removed test workflows 2022-02-07 09:37:23 -05:00
jamelreid 47218036f0 Updated ref 2022-02-04 10:20:16 -05:00
jamelreid a0569114a4 Used context to get ref 2022-02-04 09:57:47 -05:00
jamelreid 45dbb1816d Updated ref 2022-02-04 09:52:20 -05:00
jamelreid 44826048bf Added workflows to test github token 2022-02-04 09:46:20 -05:00
jamelreid 1a42791fba Updated github token 2022-02-04 09:45:36 -05:00
jamelreid 0164d219b8 Updated asset index 2022-02-04 08:16:41 -05:00
jamelreid d93f440d75 Updated to trigger on workflow_dispatch event
Also updated the workflow to pull the asset id for a given release and use that asset id to download woocommerce.zip
2022-02-04 07:34:45 -05:00
jamelreid 67f4720e0d Script to fetch an asset id for a release 2022-02-04 07:30:57 -05:00