Commit Graph

26 Commits

Author SHA1 Message Date
Vladimir Reznichenko 4311640de2
Monorepo: caching deps per target package in GH actions (#49020)
In this PR, we are implementing per-package build and caching, which optimizes build and fetching cached dependencies times across our workflows.
2024-07-10 14:39:49 +02:00
Christopher Allford ed690db902 Updated `setup-woocommerce-monorepo` Usage 2023-12-09 14:30:10 -08:00
Christopher Allford 8c6b414fe0
Revert "Refactoring Task Infrastructure" (#41928)
Revert "Refactored Task Infrastructure (#41202)"

This reverts commit 96a973b9fa.
2023-12-06 11:36:12 -08:00
Christopher Allford 96a973b9fa
Refactored Task Infrastructure (#41202)
* Fixed NPM packages with invalid names.
* Renamed plugin packages.
* Standardized package NPM scripts.
* Replaced Turborepo with Wireit.
2023-12-06 09:32:32 -08:00
Roy Ho 16386238cc
Add minimum required permissions for workflow token (#36200)
* Add minimum required permissions to e2e-tests

* Add minimum token permission to more workflows
2023-01-02 09:28:11 -08:00
Christopher Allford a49f23abfd
Optimize Workflow Caching (#34607)
* Added Monorepo Setup Action

This action will handle the installation, building, and caching for all
projects within the monorepo. It has inputs for skipping builds and
filtering so that only specific packages are installed and built.

* Removed Test Caching

Caching the results of tests, while an interesting way to avoid
unnecessary execution, seems error-prone. We can't adequately
capture the environment such that we can rely on this working.
For instance, changes in PHP version might break PHPUnit tests,
but, cached runs will be shared across different workflows.

It seems better to just not cache it and rely on people only testing
code that has actually changed in the pull request.

* Added Input Parsing

This SHOULD allow for passing multiple filters as an array argument.

* Updated Workflows

This fully utilizes the new action across all of the workflows.

* Always Cache Build Output

Since there may be other commands run that populate the cache, we
should make sure that we are always caching just in case.
2022-09-13 13:55:03 +12:00
roykho c92650df2b
Add paths input for install build workflow 2022-05-19 08:29:38 -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 7056cf93b6
Add additional pnpm cache dir 2022-05-16 06:01:53 -07:00
roykho cf5c47eb09
Cache Composer global store 2022-05-13 13:43:33 -07:00
roykho a9d67a0502
Copy file to correct path 2022-05-12 09:13:45 -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
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
Roy Ho 1ed5445635
Update workflows to run build zip script (#32825) 2022-05-03 11:48:20 +12: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 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 6e5d61da0b
Test pr smoke test workflow 2022-04-21 11:29:53 -07: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
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