44
44
name : Red Hat Account Extension E2E tests
45
45
runs-on : ubuntu-22.04
46
46
steps :
47
+
47
48
- uses : actions/checkout@v4
48
49
if : github.event_name == 'workflow_dispatch'
49
50
with :
56
57
with :
57
58
path : podman-desktop-redhat-account-ext
58
59
60
+ - name : Setup default repository name
61
+ env :
62
+ EVENT : ${{ github.event_name }}
63
+ run : |
64
+ repository=podman-desktop-redhat-account-ext
65
+ if [[ "$EVENT" == 'workflow_dispatch' ]]; then
66
+ repository=${{ github.event.inputs.repositoryName }}
67
+ fi
68
+ echo "REPOSITORY=$repository" >> $GITHUB_ENV
69
+
59
70
# Checkout podman desktop
60
71
- uses : actions/checkout@v4
61
72
with :
90
101
yarn test:e2e:build
91
102
92
103
- name : Get yarn cache directory path
93
- working-directory : ./podman-desktop-redhat-account-ext
104
+ working-directory : ${{ env.REPOSITORY }}
94
105
id : yarn-cache-dir-path
95
106
run : echo "dir=$(yarn cache dir)" >> ${GITHUB_OUTPUT}
96
107
@@ -103,13 +114,13 @@ jobs:
103
114
${{ runner.os }}-yarn-
104
115
105
116
- name : Execute yarn in Red Hat Account Extension
106
- working-directory : ./podman-desktop-redhat-account-ext
117
+ working-directory : ${{ env.REPOSITORY }}
107
118
run : |
108
119
yarn add -D @podman-desktop/tests-playwright@next
109
120
yarn --frozen-lockfile
110
121
111
122
- name : Run All E2E tests in Red Hat Account Extension
112
- working-directory : ./podman-desktop-redhat-account-ext
123
+ working-directory : ${{ env.REPOSITORY }}
113
124
env :
114
125
PODMAN_DESKTOP_ARGS : ${{ github.workspace }}/podman-desktop
115
126
run : yarn test:e2e
0 commit comments