chore: Fix scripts in CLI pipeline (#13402)
* chore: Fix scripts in CLI pipeline * Create curly-lizards-dress.md
This commit is contained in:
5
.changeset/curly-lizards-dress.md
Normal file
5
.changeset/curly-lizards-dress.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/cli": patch
|
||||
---
|
||||
|
||||
chore: Fix scripts in CLI pipeline
|
||||
10
.github/workflows/test-cli-with-database.yml
vendored
10
.github/workflows/test-cli-with-database.yml
vendored
@@ -59,7 +59,7 @@ jobs:
|
||||
- name: Create Medusa project
|
||||
working-directory: ..
|
||||
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
|
||||
run: corepack enable
|
||||
@@ -71,22 +71,22 @@ jobs:
|
||||
working-directory: ../cli-test
|
||||
|
||||
- name: Run migrations
|
||||
run: yarn medusa db:migrate
|
||||
run: npx medusa db:migrate
|
||||
working-directory: ../cli-test
|
||||
|
||||
- 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
|
||||
|
||||
- name: Run development server
|
||||
run: yarn medusa develop &
|
||||
run: npx medusa develop &
|
||||
working-directory: ../cli-test
|
||||
|
||||
- name: Testing development server
|
||||
uses: ./.github/actions/test-server
|
||||
|
||||
- name: Starting medusa
|
||||
run: yarn medusa start &
|
||||
run: npx medusa start &
|
||||
working-directory: ../cli-test
|
||||
|
||||
- name: Testing server
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import fs from "fs"
|
||||
import glob from "glob"
|
||||
import { glob } from "glob"
|
||||
import path from "path"
|
||||
|
||||
export function clearProject(directory: string) {
|
||||
|
||||
Reference in New Issue
Block a user