File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ defaults:
7
7
working-directory : webserver
8
8
jobs :
9
9
playwright :
10
+ strategy :
11
+ matrix :
12
+ environment : [dev, prod]
10
13
timeout-minutes : 60
11
14
runs-on : ubuntu-latest
12
15
container :
48
51
run : pnpm exec playwright test
49
52
env :
50
53
DEBUG : " pw:webserver"
54
+ ENVIRONMENT : ${{ matrix.environment }}
51
55
- uses : actions/upload-artifact@v4
52
56
if : failure()
53
57
with :
Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ const config: PlaywrightTestConfig = {
52
52
53
53
/* Run your local dev server before starting the tests */
54
54
webServer : {
55
- command : ( process . env . CI || process . env . SKIP_BUILD ? '' : 'pnpm build && ' ) + 'PORT=4321 pnpm start' ,
55
+ command : ( process . env . ENVIRONMENT === 'dev' ? 'PORT=4321 pnpm dev' :
56
+ ( process . env . CI || process . env . SKIP_BUILD ? '' : 'pnpm build && ' ) + 'PORT=4321 pnpm start' ) ,
56
57
url : "http://localhost:4321/" ,
57
58
reuseExistingServer : ! process . env . CI
58
59
} ,
You can’t perform that action at this time.
0 commit comments