File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -46,24 +46,26 @@ jobs:
4646 uses : Azure/static-web-apps-deploy@v1
4747 with :
4848 azure_static_web_apps_api_token : ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_DELIGHTFUL_FOREST_0A29F6210 }}
49+ app_location : " /"
4950 action : " close"
5051
5152 test :
5253 name : Playwright
5354 runs-on : ubuntu-latest
55+ needs : build_and_deploy_job
56+ container :
57+ image : mcr.microsoft.com/playwright:v1.50.1-noble
58+ options : --user 1001
5459 steps :
5560 - uses : actions/checkout@v4
56- - uses : actions/setup-node@v4
57- with :
58- node-version : 22
5961 - name : Install dependencies
6062 run : npm ci
6163 - name : Build site
6264 run : npm run build
63- - name : Install Playwright Browsers
64- run : npx playwright install --with-deps
6565 - name : Run Playwright tests
6666 run : npx playwright test
67+ env :
68+ BASE_URL : ${{ steps.builddeploy.outputs.url }}
6769 - uses : actions/upload-artifact@v4
6870 if : always()
6971 with :
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const config = defineConfig({
5959 } ,
6060 ] ,
6161
62- webServer : {
62+ webServer : process . env . BASE_URL ? undefined : {
6363 command : 'npx http-server -p 3000 build/' ,
6464 port : 3000 ,
6565 reuseExistingServer : ! process . env . CI ,
You can’t perform that action at this time.
0 commit comments