* feat(product, pricing, utils): Transaction issues and reference issues * fixes decorators * cleanup * fix product module upsert * fix missing active manager * increase timeout * revert package.json * WIP * try another node version based on findings with memory issues with jest introduced after 16.11 but fixed in 21 * re add bail * fix variant options * chore: bulk create pricing * chore: workflow bulk * Create big-chefs-dream.md * fix missing update for upserty * Add integration tests for product options upsert * rm unnecessary return * fix product prices workflow issue * cleanup * fix flag * fix model --------- Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com> Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com> Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
43 lines
1002 B
YAML
43 lines
1002 B
YAML
name: "Setup test env"
|
|
description: "Setup test environment for actions"
|
|
|
|
inputs:
|
|
node-version:
|
|
description: "Node version"
|
|
required: false
|
|
default: "16.10.0"
|
|
cache-extension:
|
|
description: "Extension for fetching cached dependencies"
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Cancel Previous Runs
|
|
uses: styfle/cancel-workflow-action@0.11.0
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
|
|
- name: Setup Node.js environment
|
|
uses: actions/setup-node@v3
|
|
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)
|