Skip to content

Commit

Permalink
Update pr-check.yaml
Browse files Browse the repository at this point in the history
Adapted 'Build OpenShift Local extension from container file' from bootc to crc-extension
  • Loading branch information
danivilla9 authored Oct 15, 2024
1 parent ca49b58 commit 2d3bd2d
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,19 @@ jobs:
- name: Build OpenShift Local extension from container file
working-directory: ./crc-extension
run: |
pnpm build
podman build -t local_openshift_local_image ./
CONTAINER_ID=$(podman create localhost/local_openshift_local_image --entrypoint "")
podman export $CONTAINER_ID > /tmp/local_openshift_local_extension.tar
mkdir -p tests/playwright/tests/output/openshift_local-tests-pd/plugins
tar -xf /tmp/local_openshift_local_extension.tar -C tests/playwright/tests/output/openshift_local-tests-pd/plugins/
podman build -t openshift_local_image ./oci/Containerfile.multistage
CONTAINER_ID_CRC=$(podman create localhost/openshift_local_image --entrypoint "")
podman export $CONTAINER_ID_CRC > /tmp/openshift_local_extension.tar
mkdir -p tests/output/crc-tests-pd/plugins
podman pull ghcr.io/redhat-developer/podman-desktop-redhat-account-ext:latest
CONTAINER_ID_SSO=$(podman create ghcr.io/redhat-developer/podman-desktop-redhat-account-ext --entrypoint "")
podman export $CONTAINER_ID_SSO > /tmp/sso_extension.tar
tar -xf /tmp/openshift_local_extension.tar -C tests/playwright/output/crc-tests-pd/plugins/
mv tests/playwright/output/crc-tests-pd/plugins/extension/ tests/playwright/output/crc-tests-pd/plugins/crcextension
tar -xf /tmp/sso_extension.tar -C tests/playwright/output/crc-tests-pd/plugins/
mv tests/playwright/output/crc-tests-pd/plugins/crc-extension/ tests/playwright/output/crc-tests-pd/plugins/ssoextension
export SKIP_INSTALLATION=true
- name: Run All E2E tests
working-directory: ./crc-extension
env:
Expand Down

0 comments on commit 2d3bd2d

Please sign in to comment.