3838 run : yarn install ${{ inputs.yarn-args }}
3939 working-directory : Extension
4040
41+ - name : Install gdb (linux)
42+ if : ${{ inputs.platform == 'linux' }}
43+ run : |
44+ sudo apt-get update
45+ sudo apt-get install -y gdb
46+
4147 - name : Compile Sources
4248 run : yarn run compile
4349 working-directory : Extension
@@ -50,53 +56,46 @@ jobs:
5056 run : yarn test
5157 working-directory : Extension
5258
53- # These tests don't require the binary.
54- # On Linux, it is failing (before the tests actually run) with: Test run terminated with signal SIGSEGV.
55- # But it works on Linux during the E2E test.
56- - name : Run SingleRootProject tests
57- if : ${{ inputs.platform != 'linux' }}
58- run : yarn test --scenario=SingleRootProject --skipCheckBinaries
59+ - name : Acquire Native Binaries
60+ run : yarn install-and-copy-binaries-for-test
5961 working-directory : Extension
6062
61- # NOTE : We can't run the test that require the native binary files
62- # yet -- there will be an update soon that allows the tester to
63- # acquire them on-the-fly
64- # - name: Run languageServer integration tests
65- # if: ${{ inputs.platform == 'windows' }}
66- # run: yarn test --scenario=SingleRootProject
67- # working-directory: Extension
63+ - name : Run languageServer integration tests (Windows)
64+ if : ${{ inputs.platform == 'windows' }}
65+ run : yarn test --scenario=SingleRootProject
66+ working-directory : Extension
6867
69- # - name: Run E2E IntelliSense features tests
70- # if: ${{ inputs.platform == 'windows' }}
71- # run: yarn test --scenario=MultirootDeadlockTest
72- # working-directory: Extension
68+ - name : Run E2E IntelliSense features tests (Windows)
69+ if : ${{ inputs.platform == 'windows' }}
70+ run : yarn test --scenario=MultirootDeadlockTest
71+ working-directory : Extension
7372
74- # - name: Run E2E IntelliSense features tests
75- # if: ${{ inputs.platform == 'windows' }}
76- # run: yarn test --scenario=RunWithoutDebugging
77- # working-directory: Extension
73+ - name : Run RunWithoutDebugging tests (Windows)
74+ if : ${{ inputs.platform == 'windows' }}
75+ run : yarn test --scenario=RunWithoutDebugging
76+ working-directory : Extension
7877
7978 # NOTE: For mac/linux run the tests with xvfb-action for UI support.
8079 # Another way to start xvfb https://github.com/microsoft/vscode-test/blob/master/sample/azure-pipelines.yml
8180
82- # - name: Run languageServer integration tests (xvfb )
83- # if: ${{ inputs.platform == 'mac' || inputs.platform == 'linux' }}
84- # uses: coactions/setup-xvfb@v1
85- # with:
86- # run: yarn test --scenario=SingleRootProject
87- # working-directory: Extension
88-
89- # - name: Run E2E IntelliSense features tests (xvfb )
90- # if: ${{ inputs.platform == 'mac' || inputs.platform == 'linux' }}
91- # uses: coactions/setup-xvfb@v1
92- # with:
93- # run: yarn test --scenario=MultirootDeadlockTest
94- # working-directory: Extension
95-
96- # - name: Run E2E IntelliSense features tests (xvfb )
97- # if: ${{ inputs.platform == 'mac' || inputs.platform == 'linux' }}
98- # uses: coactions/setup-xvfb@v1
99- # with:
100- # run: yarn test --scenario=RunWithoutDebugging
101- # working-directory: Extension
81+ - name : Run languageServer integration tests (linux/macOS )
82+ if : ${{ inputs.platform == 'mac' || inputs.platform == 'linux' }}
83+ uses : coactions/setup-xvfb@v1
84+ with :
85+ run : yarn test --scenario=SingleRootProject
86+ working-directory : Extension
87+
88+ - name : Run E2E IntelliSense features tests (linux/macOS )
89+ if : ${{ inputs.platform == 'mac' || inputs.platform == 'linux' }}
90+ uses : coactions/setup-xvfb@v1
91+ with :
92+ run : yarn test --scenario=MultirootDeadlockTest
93+ working-directory : Extension
94+
95+ - name : Run RunWithoutDebugging tests (linux/macOS )
96+ if : ${{ inputs.platform == 'mac' || inputs.platform == 'linux' }}
97+ uses : coactions/setup-xvfb@v1
98+ with :
99+ run : yarn test --scenario=RunWithoutDebugging --scenario-arg=skipExternalConsole
100+ working-directory : Extension
102101
0 commit comments