Compare commits

...

2 Commits

Author SHA1 Message Date
leehuwuj 4c4af6a0a8 e2e install pack and run the package 2024-02-06 10:20:46 +07:00
leehuwuj 4eecc5148e update create-llama e2e command 2024-02-06 09:45:50 +07:00
3 changed files with 4 additions and 19 deletions
+1 -7
View File
@@ -49,14 +49,8 @@ jobs:
- name: Build create-llama
run: pnpm run build
working-directory: ./packages/create-llama
- name: Pack
run: pnpm pack --pack-destination ./output
working-directory: ./packages/create-llama
- name: Extract Pack
run: tar -xvzf ./output/*.tgz -C ./output
working-directory: ./packages/create-llama
- name: Run Playwright tests
run: pnpm exec playwright test
run: pnpm run e2e
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
working-directory: ./packages/create-llama
+2 -11
View File
@@ -74,15 +74,6 @@ export async function runCreateLlama(
externalPort: number,
postInstallAction: TemplatePostInstallAction,
): Promise<CreateLlamaResult> {
const createLlama = path.join(
__dirname,
"..",
"output",
"package",
"dist",
"index.js",
);
const name = [
templateType,
templateFramework,
@@ -91,8 +82,8 @@ export async function runCreateLlama(
appType,
].join("-");
const command = [
"node",
createLlama,
"npx",
"create-llama",
name,
"--template",
templateType,
+1 -1
View File
@@ -24,7 +24,7 @@
"dev": "ncc build ./index.ts -w -o dist/",
"build": "npm run clean && ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register",
"lint": "eslint . --ignore-pattern dist",
"e2e": "playwright test",
"e2e": "pnpm pack --pack-destination ./output && npm i -g ./output/create-llama-*.tgz && playwright test",
"prepublishOnly": "cd ../../ && pnpm run build:release"
},
"devDependencies": {