Skip to content

Commit

Permalink
test(e2e): more squashing
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Villanueva <[email protected]>
  • Loading branch information
danivilla9 committed Jan 15, 2025
1 parent 8f8300b commit b02f435
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 26 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/e2e-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ jobs:
ref: main
path: sso-extension

- uses: actions/setup-node@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v4
name: Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
package_json_file: ./podman-desktop/package.json
Expand Down Expand Up @@ -116,24 +117,17 @@ jobs:
Move-Item -Path package.json_tmp -Destination package.json -Force
shell: pwsh

# - name: Install CRC extension dependencies
# working-directory: ./crc-extension
# run: yarn install --check-files

- name: Execute yarn in OpenShift Local Extension
working-directory: ./crc-extension
run: yarn --frozen-lockfile

- name: Revert unprivileged user namespace restrictions in Ubuntu 24.04
if: matrix.os == 'ubuntu-24.04'
run: |
# allow unprivileged user namespace
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Build OpenShift Local extension from container file and SSO dependency (Ubuntu, podman)
- name: Install & build OpenShift Local extension from container file and SSO dependency (Ubuntu, podman)
if: matrix.os == 'ubuntu-24.04'
working-directory: ./crc-extension
run: |
yarn install --check-files
# build crc extension
podman build -t openshift_local_image . -f ./oci/Containerfile.multistage
CONTAINER_ID_CRC=$(podman create localhost/openshift_local_image --entrypoint "")
Expand Down
20 changes: 6 additions & 14 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,13 @@ jobs:
ref: main
path: sso-extension

- uses: actions/setup-node@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v4
name: Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
package_json_file: ./podman-desktop/package.json
Expand Down Expand Up @@ -195,26 +196,17 @@ jobs:
Move-Item -Path package.json_tmp -Destination package.json -Force
shell: pwsh

# - name: Install CRC extension dependencies
# working-directory: ./crc-extension
# run:

- name: Execute yarn in OpenShift Local Extension
working-directory: ./crc-extension
run: |
yarn install --check-files
# yarn --frozen-lockfile
- name: Revert unprivileged user namespace restrictions in Ubuntu 24.04
if: matrix.os == 'ubuntu-24.04'
run: |
# allow unprivileged user namespace
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Build OpenShift Local extension from container file and SSO dependency (Ubuntu, podman)
- name: Install & build OpenShift Local extension from container file and SSO dependency (Ubuntu, podman)
if: matrix.os == 'ubuntu-24.04'
working-directory: ./crc-extension
run: |
yarn install --check-files
# build crc extension
podman build -t openshift_local_image . -f ./oci/Containerfile.multistage
CONTAINER_ID_CRC=$(podman create localhost/openshift_local_image --entrypoint "")
Expand Down

0 comments on commit b02f435

Please sign in to comment.