chore: improve ci pipeline (#1764)

* fix: caching deps + add true parallelization to integration tests api

* fix: github action

* chore: upgrade to yarn berry (#1762)

* init migration

* remove: yarn.lock from all pkgs

* fix: build script in pkgs

* adjust yarn config

* fix: yarn.lock and yarnrc.yml

* fix: github actions

* fix: wrong type

* fix (medusa-react): use dts-cli instead of tsdx

* fix: yarn.lock

* fix: yarn v

* fix: prepare script

* add: comment on why we need to downgrade yarn before medusa-dev

* chore: move to Turborepo (#1763)

* increase number of parallel nodes

* fix (medusa-fulfillment-webshipper): build script

* fix: use new version of medusa-dev

* fix: rename cache-bootstrap to cache-deps
This commit is contained in:
Zakaria El Asri
2022-07-10 11:11:11 +01:00
committed by GitHub
parent 6715eb11de
commit 9fa4238ee4
79 changed files with 54577 additions and 318956 deletions

23
.github/actions/cache-deps/action.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: cache-deps
description: Creates a cache with the given extension for monorepo dependencies
inputs:
extension:
description: Extension for cache name
runs:
using: composite
steps:
- uses: actions/cache@v3
id: cache
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-yarn-${{inputs.extension}}-v8-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{inputs.extension}}-v8
# We want to only bootstrap and install if no cache is found.
- run: |
if [[ "${{steps.cache.outputs.cache-hit}}" != "true" ]]; then
yarn install --immutable
fi
shell: bash