25
25
inputs :
26
26
organization :
27
27
default : ' redhat-developer'
28
- description : ' Organization of the Podman Desktop repository'
28
+ description : ' Organization of the Red Hat Account Extension repository'
29
29
type : string
30
30
required : true
31
31
repositoryName :
35
35
required : true
36
36
branch :
37
37
default : ' main'
38
- description : ' Podman Desktop Extension SSO repo branch'
38
+ description : ' Red Hat Account Extension repo branch'
39
39
type : string
40
40
required : true
41
41
42
42
jobs :
43
43
e2e-tests :
44
- name : Run E2E tests
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
+ run : |
62
+ repository=podman-desktop-redhat-account-ext
63
+ if [[ "${{ github.event_name }}" == 'workflow_dispatch' ]]; then
64
+ repository=${{ github.event.inputs.repositoryName }}
65
+ fi
66
+ echo "REPOSITORY=$repository" >> $GITHUB_ENV
67
+ ls
68
+
59
69
# Checkout podman desktop
60
70
- uses : actions/checkout@v4
61
71
with :
90
100
yarn test:e2e:build
91
101
92
102
- name : Get yarn cache directory path
93
- working-directory : ./podman-desktop-redhat-account-ext
103
+ working-directory : ${{ env.REPOSITORY }}
94
104
id : yarn-cache-dir-path
95
105
run : echo "dir=$(yarn cache dir)" >> ${GITHUB_OUTPUT}
96
106
@@ -102,12 +112,14 @@ jobs:
102
112
restore-keys : |
103
113
${{ runner.os }}-yarn-
104
114
105
- - name : Execute yarn in SSO Extension
106
- working-directory : ./podman-desktop-redhat-account-ext
107
- run : yarn --frozen-lockfile
115
+ - name : Execute yarn in Red Hat Account Extension
116
+ working-directory : ${{ env.REPOSITORY }}
117
+ run : |
118
+ yarn add -D @podman-desktop/tests-playwright@next
119
+ yarn --frozen-lockfile
108
120
109
- - name : Run All E2E tests
110
- working-directory : ./podman-desktop-redhat-account-ext
121
+ - name : Run All E2E tests in Red Hat Account Extension
122
+ working-directory : ${{ env.REPOSITORY }}
111
123
env :
112
124
PODMAN_DESKTOP_ARGS : ${{ github.workspace }}/podman-desktop
113
125
run : yarn test:e2e
0 commit comments