Skip to content

Commit 8ef71ee

Browse files
Split setup and run integration tests
1 parent f4ed160 commit 8ef71ee

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/integration-tests.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
node-version: 18
3333
cache: 'npm'
34-
34+
3535
- name: Cache node_modules
3636
uses: actions/cache@v4
3737
with:
@@ -57,13 +57,21 @@ jobs:
5757

5858
- run: npx playwright install --with-deps
5959
if: steps.playwright-cache.outputs.cache-hit != 'true'
60-
61-
- name: Run script
62-
run: ./bin/integration-tests ${{ matrix.wp }} ${{ matrix.php}}
60+
61+
- name: Setup test environment
62+
uses: nick-fields/retry@v3
63+
with:
64+
timeout_minutes: 10
65+
max_attempts: 3
66+
shell: bash
67+
command: ./bin/setup-integration-tests ${{ matrix.wp }} ${{ matrix.php}}
68+
69+
- name: Run integration tests
70+
run: npm run test:playwright
6371

6472
- uses: actions/upload-artifact@v4
6573
if: ${{ !cancelled() }}
6674
with:
6775
name: playwright-report-${{ matrix.wp }}-${{ matrix.php }}
6876
path: playwright-report/
69-
retention-days: 30
77+
retention-days: 30
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ function setup {
8585
prepare_test_config
8686
start_services
8787
wait_for_services
88-
npm run test:playwright
8988
}
9089

9190
function teardown {

0 commit comments

Comments
 (0)