Skip to content

Commit

Permalink
chore(ci,test): modifying pr-check e2e to build extension from ref
Browse files Browse the repository at this point in the history
Signed-off-by: Tibor Dancs <[email protected]>
  • Loading branch information
ScrewTSW committed Oct 21, 2024
1 parent c4f8abb commit 95e4a6a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,17 @@ jobs:
working-directory: ./podman-desktop-extension-ai-lab
run: pnpm install --no-frozen-lockfile

- name: Build Image
working-directory: ./podman-desktop-extension-ai-lab
id: build-image
run: |
pnpm build
podman build -t local_ai_lab_image ./
CONTAINER_ID=$(podman create localhost/local_ai_lab_image --entrypoint "")
podman export $CONTAINER_ID > /tmp/local_ai_lab_extension.tar
mkdir -p tests/playwright/tests/output/ai-lab-tests-pd/plugins
tar -xf /tmp/local_ai_lab_extension.tar -C tests/playwright/tests/output/ai-lab-tests-pd/plugins/
- name: Run E2E Smoke tests
working-directory: ./podman-desktop-extension-ai-lab
env:
Expand Down
3 changes: 2 additions & 1 deletion tests/playwright/src/ai-lab-extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ import {
import { AILabPage } from './model/ai-lab-page';
import type { AILabRecipesCatalogPage } from './model/ai-lab-recipes-catalog-page';

const AI_LAB_EXTENSION_OCI_IMAGE = 'ghcr.io/containers/podman-desktop-extension-ai-lab:nightly';
const AI_LAB_EXTENSION_OCI_IMAGE =
process.env.EXTENSION_OCI_IMAGE ?? 'ghcr.io/containers/podman-desktop-extension-ai-lab:nightly';
const AI_LAB_CATALOG_EXTENSION_LABEL: string = 'redhat.ai-lab';
const AI_LAB_NAVBAR_EXTENSION_LABEL: string = 'AI Lab';
const AI_LAB_PAGE_BODY_LABEL: string = 'Webview AI Lab';
Expand Down

0 comments on commit 95e4a6a

Please sign in to comment.