Skip to content

Commit dbc5bde

Browse files
authored
Fix playwright tests (#1114)
1 parent 7e55888 commit dbc5bde

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/playwright.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,11 @@ jobs:
105105
echo "CORE_HASH=$(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse HEAD | sed 's|/|_|g')" >> $GITHUB_ENV
106106
echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
107107
108+
- name: Get correct version name for require
109+
run: echo "REQUIRE_VERSION=$([[ '${{ env.CORE_HASH }}' =~ ^[0-9]+\.[xX]$ ]] && echo '${{ env.CORE_HASH }}-dev' || echo 'dev-${{ env.CORE_HASH }}')" >> $GITHUB_ENV
110+
108111
- name: Composer require the local rapidez/core
109-
run: composer require rapidez/core:"dev-${{ env.CORE_HASH }} as ${{ env.LATEST_TAG }}"
112+
run: composer require rapidez/core:"${{ env.REQUIRE_VERSION }} as ${{ env.LATEST_TAG }}"
110113

111114
- name: Install Rapidez command
112115
run: php artisan rapidez:install --frontendonly

0 commit comments

Comments
 (0)