@@ -56,19 +56,16 @@ jobs:
56
56
if : github.event_name == 'push'
57
57
with :
58
58
path : podman-desktop-redhat-account-ext
59
-
59
+
60
60
- name : Setup default repository name
61
61
env :
62
62
EVENT : ${{ github.event_name }}
63
63
run : |
64
64
repository=podman-desktop-redhat-account-ext
65
- echo EVENT: $EVENT
66
- echo REPO: ${{ github.event.inputs.repositoryName }}
67
65
if [[ "$EVENT" == 'workflow_dispatch' ]]; then
68
66
repository=${{ github.event.inputs.repositoryName }}
69
67
fi
70
68
echo "REPOSITORY=$repository" >> $GITHUB_ENV
71
- cat $GITHUB_ENV
72
69
73
70
# Checkout podman desktop
74
71
- uses : actions/checkout@v4
77
74
ref : main
78
75
path : podman-desktop
79
76
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
120
78
working-directory : ${{ env.REPOSITORY }}
121
79
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