* 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
43 lines
1000 B
YAML
43 lines
1000 B
YAML
name: "Setup test env"
|
|
description: "Setup test environment for actions"
|
|
|
|
inputs:
|
|
node-version:
|
|
description: "Node version"
|
|
required: false
|
|
default: "14"
|
|
cache-extension:
|
|
description: "Extension for fetching cached dependencies"
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Cancel Previous Runs
|
|
uses: styfle/cancel-workflow-action@0.9.1
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
|
|
- name: Setup Node.js environment
|
|
uses: actions/setup-node@v2.4.1
|
|
with:
|
|
node-version: ${{ inputs.node-version }}
|
|
cache: "yarn"
|
|
|
|
- name: Install dependencies
|
|
uses: ./.github/actions/cache-deps
|
|
with:
|
|
extension: ${{ inputs.cache-extension }}
|
|
|
|
- name: Build Packages
|
|
shell: "bash"
|
|
run: yarn build
|
|
|
|
- name: Install dev cli
|
|
shell: "bash"
|
|
run: sudo npm i -g medusa-dev-cli
|
|
|
|
- name: Set path to medusa repo
|
|
shell: "bash"
|
|
run: medusa-dev --set-path-to-repo $(pwd)
|