chore: Fix scripts in CLI pipeline (#13402)
* chore: Fix scripts in CLI pipeline * Create curly-lizards-dress.md
This commit is contained in:
1 parent
a2dabea6c4
commit
115a1deb49
3 files changed
+11
-6
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/cli": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
chore: Fix scripts in CLI pipeline
|
||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
- name: Create Medusa project
|
- name: Create Medusa project
|
||||||
working-directory: ..
|
working-directory: ..
|
||||||
run: |
|
run: |
|
||||||
medusa new cli-test --skip-db --v2 --branch ci-custom
|
medusa new cli-test --skip-db --skip-migrations --v2 --branch ci-custom
|
||||||
|
|
||||||
- name: Enable Corepack
|
- name: Enable Corepack
|
||||||
run: corepack enable
|
run: corepack enable
|
||||||
@@ -71,22 +71,22 @@ jobs:
|
|||||||
working-directory: ../cli-test
|
working-directory: ../cli-test
|
||||||
|
|
||||||
- name: Run migrations
|
- name: Run migrations
|
||||||
run: yarn medusa db:migrate
|
run: npx medusa db:migrate
|
||||||
working-directory: ../cli-test
|
working-directory: ../cli-test
|
||||||
|
|
||||||
- name: Create admin user
|
- name: Create admin user
|
||||||
run: yarn medusa user -e test@test.com -p password -i admin_123
|
run: npx medusa user -e test@test.com -p password -i admin_123
|
||||||
working-directory: ../cli-test
|
working-directory: ../cli-test
|
||||||
|
|
||||||
- name: Run development server
|
- name: Run development server
|
||||||
run: yarn medusa develop &
|
run: npx medusa develop &
|
||||||
working-directory: ../cli-test
|
working-directory: ../cli-test
|
||||||
|
|
||||||
- name: Testing development server
|
- name: Testing development server
|
||||||
uses: ./.github/actions/test-server
|
uses: ./.github/actions/test-server
|
||||||
|
|
||||||
- name: Starting medusa
|
- name: Starting medusa
|
||||||
run: yarn medusa start &
|
run: npx medusa start &
|
||||||
working-directory: ../cli-test
|
working-directory: ../cli-test
|
||||||
|
|
||||||
- name: Testing server
|
- name: Testing server
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import glob from "glob"
|
import { glob } from "glob"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
|
|
||||||
export function clearProject(directory: string) {
|
export function clearProject(directory: string) {
|
||||||
|
|||||||
Reference in new issue
Block a user