File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
extensions/vscode/e2e/tests Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -444,6 +444,7 @@ jobs:
444
444
chmod 600 ~/.ssh/id_rsa
445
445
ssh-keyscan -H "$SSH_HOST" >> ~/.ssh/known_hosts
446
446
echo -e "Host ssh-test-container\n\tHostName $SSH_HOST\n\tUser ec2-user\n\tIdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config
447
+ if : ${{ github.event.pull_request.head.repo.fork == false }}
447
448
448
449
- name : Set up Xvfb
449
450
run : |
@@ -453,7 +454,7 @@ jobs:
453
454
- name : Run e2e tests
454
455
run : |
455
456
cd extensions/vscode
456
- TEST_FILE="${{ matrix.test_file }}" npm run ${{ matrix.command }}
457
+ IGNORE_SSH_TESTS="${{ github.event.pull_request.head.repo.fork }}" TEST_FILE="${{ matrix.test_file }}" npm run ${{ matrix.command }}
457
458
env :
458
459
DISPLAY : :99
459
460
Original file line number Diff line number Diff line change 1
1
import {
2
2
EditorView ,
3
- TextEditor ,
4
3
InputBox ,
5
- Workbench ,
6
4
Key ,
7
- VSBrowser ,
5
+ TextEditor ,
6
+ Workbench ,
8
7
} from "vscode-extension-tester" ;
9
8
9
+ import { AutocompleteActions } from "../actions/Autocomplete.actions" ;
10
10
import { DEFAULT_TIMEOUT } from "../constants" ;
11
- import { TestUtils } from "../TestUtils" ;
12
11
import { SSHSelectors } from "../selectors/SSH.selectors" ;
13
- import { AutocompleteActions } from "../actions/Autocomplete.actions " ;
12
+ import { TestUtils } from "../TestUtils " ;
14
13
15
14
describe ( "SSH" , function ( ) {
15
+ if ( process . env . IGNORE_SSH_TESTS === "true" ) {
16
+ it ( "Skipping SSH tests" , ( ) => {
17
+ console . log ( "Skipping SSH tests due to IGNORE_SSH_TESTS being set" ) ;
18
+ } ) ;
19
+ return ;
20
+ }
21
+
16
22
it ( "Should display completions" , async ( ) => {
17
23
await TestUtils . waitForSuccess ( async ( ) => {
18
24
await new Workbench ( ) . executeCommand (
You can’t perform that action at this time.
0 commit comments