Skip to content

Commit 70c5f33

Browse files
committed
add env
1 parent 0623f04 commit 70c5f33

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/playwright.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,28 @@ jobs:
1313
- uses: actions/setup-node@v4
1414
with:
1515
node-version: lts/*
16-
- name: Install dependencies
16+
- name: Set the version suffix for the output
17+
run: echo VERSION_SUFFIX=${GITHUB_REF_NAME//\//-} >> $GITHUB_ENV
18+
- name: Build Stackable Free Plugin
1719
run: |
1820
npm ci --legacy-peer-deps
1921
npm run build:no-translate
22+
- name: Append PR in build version & create PR build folder
23+
run: |
24+
node ./tools/append-build-version.js $VERSION_SUFFIX
25+
cp -r build/stackable stackable-$VERSION_SUFFIX
2026
- name: Install wp-env
2127
run: |
2228
npm install -g @wordpress/env
2329
- name: Start wp-env
2430
run: wp-env start
2531
- name: Run playwright tests
32+
env:
33+
WP_BASE_URL: http://localhost:8888
34+
WP_AUTH_STORAGE: wp-auth.json
35+
WP_USERNAME: admin
36+
WP_PASSWORD: password
37+
STACKABLE_SLUG: stackable-$VERSION_SUFFIX
2638
run: npm run test
2739
- uses: actions/upload-artifact@v4
2840
if: ${{ !cancelled() }}

0 commit comments

Comments
 (0)