Skip to content

Commit

Permalink
fix: amek repository name dynamicly resoluted
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Dockal <[email protected]>
  • Loading branch information
odockal committed Apr 23, 2024
1 parent 7731ca3 commit e9daea9
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/e2e-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
name: Red Hat Account Extension E2E tests
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v4
if: github.event_name == 'workflow_dispatch'
with:
Expand All @@ -56,6 +57,16 @@ jobs:
with:
path: podman-desktop-redhat-account-ext

- name: Setup default repository name
env:
EVENT: ${{ github.event_name }}
run: |
repository=podman-desktop-redhat-account-ext
if [[ "$EVENT" == 'workflow_dispatch' ]]; then
repository=${{ github.event.inputs.repositoryName }}
fi
echo "REPOSITORY=$repository" >> $GITHUB_ENV
# Checkout podman desktop
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -90,7 +101,7 @@ jobs:
yarn test:e2e:build
- name: Get yarn cache directory path
working-directory: ./podman-desktop-redhat-account-ext
working-directory: ${{ env.REPOSITORY }}
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> ${GITHUB_OUTPUT}

Expand All @@ -103,13 +114,13 @@ jobs:
${{ runner.os }}-yarn-
- name: Execute yarn in Red Hat Account Extension
working-directory: ./podman-desktop-redhat-account-ext
working-directory: ${{ env.REPOSITORY }}
run: |
yarn add -D @podman-desktop/tests-playwright@next
yarn --frozen-lockfile
- name: Run All E2E tests in Red Hat Account Extension
working-directory: ./podman-desktop-redhat-account-ext
working-directory: ${{ env.REPOSITORY }}
env:
PODMAN_DESKTOP_ARGS: ${{ github.workspace }}/podman-desktop
run: yarn test:e2e
Expand Down

0 comments on commit e9daea9

Please sign in to comment.