Skip to content

Commit

Permalink
chore(ci): updating linux workflow (#1681)
Browse files Browse the repository at this point in the history
Signed-off-by: Tibor Dancs <[email protected]>
  • Loading branch information
ScrewTSW authored Sep 9, 2024
1 parent b98d60b commit 4e3a72e
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/e2e-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

- uses: actions/checkout@v4
if: github.event_name == 'push'
with:
with:
path: podman-desktop-extension-ai-lab

# Checkout podman desktop
Expand Down Expand Up @@ -90,25 +90,20 @@ jobs:
# allow unprivileged user namespace
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Build Podman Desktop for E2E tests
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
package_json_file: ./podman-desktop/package.json

- name: Execute pnpm
working-directory: ./podman-desktop
run: |
yarn --frozen-lockfile
yarn test:e2e:build
run: pnpm install --frozen-lockfile

- name: Get yarn cache directory path
working-directory: ./podman-desktop-extension-ai-lab
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> ${GITHUB_OUTPUT}
- name: Build Podman Desktop for E2E tests
working-directory: ./podman-desktop
run: pnpm test:e2e:build

- uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Ensure getting current HEAD version of the test framework
working-directory: ./podman-desktop-extension-ai-lab/tests/playwright
run: yarn add -D @podman-desktop/tests-playwright@next
Expand All @@ -121,6 +116,7 @@ jobs:
working-directory: ./podman-desktop-extension-ai-lab
env:
PODMAN_DESKTOP_ARGS: ${{ github.workspace }}/podman-desktop
AI_LAB_CI_RUN: true
run: yarn test:e2e

- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 4e3a72e

Please sign in to comment.