Skip to content

Commit 80fb389

Browse files
authored
Update e2e-main.yaml
1 parent 9b05a9d commit 80fb389

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

.github/workflows/e2e-main.yaml

+21-9
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
inputs:
2626
organization:
2727
default: 'redhat-developer'
28-
description: 'Organization of the Podman Desktop repository'
28+
description: 'Organization of the Red Hat Account Extension repository'
2929
type: string
3030
required: true
3131
repositoryName:
@@ -35,15 +35,16 @@ on:
3535
required: true
3636
branch:
3737
default: 'main'
38-
description: 'Podman Desktop Extension SSO repo branch'
38+
description: 'Red Hat Account Extension repo branch'
3939
type: string
4040
required: true
4141

4242
jobs:
4343
e2e-tests:
44-
name: Run E2E tests
44+
name: Red Hat Account Extension E2E tests
4545
runs-on: ubuntu-22.04
4646
steps:
47+
4748
- uses: actions/checkout@v4
4849
if: github.event_name == 'workflow_dispatch'
4950
with:
@@ -56,6 +57,15 @@ jobs:
5657
with:
5758
path: podman-desktop-redhat-account-ext
5859

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+
5969
# Checkout podman desktop
6070
- uses: actions/checkout@v4
6171
with:
@@ -90,7 +100,7 @@ jobs:
90100
yarn test:e2e:build
91101
92102
- name: Get yarn cache directory path
93-
working-directory: ./podman-desktop-redhat-account-ext
103+
working-directory: ${{ env.REPOSITORY }}
94104
id: yarn-cache-dir-path
95105
run: echo "dir=$(yarn cache dir)" >> ${GITHUB_OUTPUT}
96106

@@ -102,12 +112,14 @@ jobs:
102112
restore-keys: |
103113
${{ runner.os }}-yarn-
104114
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
108120
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 }}
111123
env:
112124
PODMAN_DESKTOP_ARGS: ${{ github.workspace }}/podman-desktop
113125
run: yarn test:e2e

0 commit comments

Comments
 (0)