Skip to content

Commit aecdb70

Browse files
authored
Update e2e-main.yaml
1 parent 39bfa6d commit aecdb70

File tree

1 file changed

+3
-58
lines changed

1 file changed

+3
-58
lines changed

.github/workflows/e2e-main.yaml

+3-58
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,16 @@ jobs:
5656
if: github.event_name == 'push'
5757
with:
5858
path: podman-desktop-redhat-account-ext
59-
59+
6060
- name: Setup default repository name
6161
env:
6262
EVENT: ${{ github.event_name }}
6363
run: |
6464
repository=podman-desktop-redhat-account-ext
65-
echo EVENT: $EVENT
66-
echo REPO: ${{ github.event.inputs.repositoryName }}
6765
if [[ "$EVENT" == 'workflow_dispatch' ]]; then
6866
repository=${{ github.event.inputs.repositoryName }}
6967
fi
7068
echo "REPOSITORY=$repository" >> $GITHUB_ENV
71-
cat $GITHUB_ENV
7269
7370
# Checkout podman desktop
7471
- uses: actions/checkout@v4
@@ -77,59 +74,7 @@ jobs:
7774
ref: main
7875
path: podman-desktop
7976

80-
- uses: actions/setup-node@v4
81-
with:
82-
node-version: 20
83-
84-
- name: Update podman
85-
run: |
86-
sudo sh -c "echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list"
87-
curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/Release.key" | sudo apt-key add -
88-
sudo apt-get update -qq
89-
sudo apt-get -qq -y install podman || { echo "Start fallback steps for podman nightly installation from a static mirror" && \
90-
sudo sh -c "echo 'deb http://ftp.lysator.liu.se/pub/opensuse/repositories/devel:/kubic:/libcontainers:/unstable/xUbuntu_22.04/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list" && \
91-
curl -L "http://ftp.lysator.liu.se/pub/opensuse/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/Release.key" | sudo apt-key add - && \
92-
sudo apt-get update && \
93-
sudo apt-get -y install podman; }
94-
podman version
95-
# downgrade conmon package version to workaround issue with starting containers, see https://github.com/containers/conmon/issues/475
96-
# remove once the repository contains conmon 2.1.10
97-
wget https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_22.04/amd64/conmon_2.1.2~0_amd64.deb -O /tmp/conmon_2.1.2.deb
98-
sudo apt install /tmp/conmon_2.1.2.deb
99-
100-
- name: Build Podman Desktop for E2E tests
101-
working-directory: ./podman-desktop
102-
run: |
103-
yarn --frozen-lockfile
104-
yarn test:e2e:build
105-
106-
- name: Get yarn cache directory path
107-
working-directory: ${{ env.REPOSITORY }}
108-
id: yarn-cache-dir-path
109-
run: echo "dir=$(yarn cache dir)" >> ${GITHUB_OUTPUT}
110-
111-
- uses: actions/cache@v4
112-
id: yarn-cache
113-
with:
114-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
115-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
116-
restore-keys: |
117-
${{ runner.os }}-yarn-
118-
119-
- name: Execute yarn in Red Hat Account Extension
77+
- name: Test working dir
12078
working-directory: ${{ env.REPOSITORY }}
12179
run: |
122-
yarn add -D @podman-desktop/tests-playwright@next
123-
yarn --frozen-lockfile
124-
125-
- name: Run All E2E tests in Red Hat Account Extension
126-
working-directory: ${{ env.REPOSITORY }}
127-
env:
128-
PODMAN_DESKTOP_ARGS: ${{ github.workspace }}/podman-desktop
129-
run: yarn test:e2e
130-
131-
- uses: actions/upload-artifact@v4
132-
if: always()
133-
with:
134-
name: e2e-tests
135-
path: ./**/tests/output/
80+
echo "CHECKING PWD: $(pwd)"

0 commit comments

Comments
 (0)