File tree Expand file tree Collapse file tree 4 files changed +22
-25
lines changed
Expand file tree Collapse file tree 4 files changed +22
-25
lines changed Original file line number Diff line number Diff line change 44 directory : ' /'
55 schedule :
66 interval : ' weekly'
7+ - package-ecosystem : ' github-actions'
8+ directory : ' /'
9+ schedule :
10+ interval : ' weekly'
Original file line number Diff line number Diff line change 11on :
2+ push :
3+ branches :
4+ - main
25 pull_request :
36 branches :
47 - main
58concurrency :
69 group : ' pr-${{ github.event.pull_request.number }}'
710 cancel-in-progress : true
811jobs :
9- test-vscode-e2e :
12+ test-vscode :
1013 env :
1114 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
12- runs-on : macos -latest
15+ runs-on : ubuntu -latest
1316 steps :
14- - uses : actions/checkout@v3
15- - uses : actions/setup-python@v4
16- with :
17- python-version : ' 3.12'
18- - name : Install Python dependencies
19- run : make install-dev
20- - uses : actions/setup-node@v3
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-node@v4
2119 with :
2220 node-version : ' 20'
23- - uses : pnpm/action-setup@v2
21+ - uses : pnpm/action-setup@v4
2422 with :
2523 version : latest
2624 - name : Install dependencies
2725 run : pnpm install
2826 - name : Run CI
2927 run : pnpm run ci
30- - name : Fetch VSCode
31- working-directory : vscode/extension
32- run : pnpm run fetch-vscode
33- - name : Run E2E tests
34- working-directory : vscode/extension
35- run : pnpm run test:e2e --max-failures 1
36- - name : Upload test videos
37- uses : actions/upload-artifact@v4
38- with :
39- name : test-videos
40- path : vscode/extension/test-videos/
Original file line number Diff line number Diff line change 55* .vsix
66LICENSE
77src_react
8- ! src_react /.gitkeep
9- test-videos
8+ ! src_react /.gitkeep
Original file line number Diff line number Diff line change @@ -33,7 +33,15 @@ export const startVSCode = async (
3333 const userDataDir = await fs . mkdtemp (
3434 path . join ( os . tmpdir ( ) , 'vscode-user-data-' ) ,
3535 )
36- const ciArgs = process . env . CI ? [ '--window-position=-10000,0' ] : [ ]
36+ const ciArgs = process . env . CI
37+ ? [
38+ '--disable-gpu' ,
39+ '--headless' ,
40+ '--no-sandbox' ,
41+ '--disable-dev-shm-usage' ,
42+ '--window-position=-10000,0' ,
43+ ]
44+ : [ ]
3745 const args = [
3846 ...ciArgs ,
3947 `--extensionDevelopmentPath=${ EXT_PATH } ` ,
@@ -46,7 +54,6 @@ export const startVSCode = async (
4654 const electronApp = await electron . launch ( {
4755 executablePath : VS_CODE_EXE ,
4856 args,
49- recordVideo : { dir : 'test-videos' } ,
5057 } )
5158 const window = await electronApp . firstWindow ( )
5259 await window . waitForLoadState ( 'domcontentloaded' )
You can’t perform that action at this time.
0 commit comments