File tree 2 files changed +6
-10
lines changed
2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
- name : UI Automation Tests
2
- on : workflow_dispatch
1
+ name : e2e
2
+ on : pull_request
3
+
3
4
jobs :
4
5
playwright :
5
6
runs-on : ubuntu-latest
17
18
- name : Install dependencies
18
19
run : npm ci
19
20
- name : Install headless Chromium for Playwright Browser
20
- run : npx playwright install --with-deps --no-shell
21
- - name : Start localhost
22
- run : npm run start &
23
- env :
24
- REACT_APP_TEST_EVM_ADDR : ${{ secrets.REACT_APP_TEST_EVM_ADDR }}
25
- REACT_APP_TEST_EVM_PK : ${{ secrets.REACT_APP_TEST_EVM_PK }}
21
+ run : npx playwright install chromium --with-deps
26
22
- name : Run Playwright tests
27
- run : npm test:e2e
23
+ run : npm run test:e2e
28
24
env :
29
25
REACT_APP_TEST_EVM_ADDR : ${{ secrets.REACT_APP_TEST_EVM_ADDR }}
30
26
REACT_APP_TEST_EVM_PK : ${{ secrets.REACT_APP_TEST_EVM_PK }}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export default defineConfig({
22
22
] ,
23
23
24
24
webServer : {
25
- command : 'npm run dev ' ,
25
+ command : 'npm run start ' ,
26
26
url : 'http://localhost:5173' ,
27
27
reuseExistingServer : ! process . env . CI ,
28
28
timeout : 120000 ,
You can’t perform that action at this time.
0 commit comments