Skip to content

Commit 78462ec

Browse files
committed
Execution tests
1 parent 060dd58 commit 78462ec

20 files changed

+2525
-115
lines changed

.github/workflows/test-nightly.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Run extension tests nightly on vscode insiders version
1+
# Run smoke tests nightly on vscode insiders version
22

33
name: test-nightly
44

@@ -37,9 +37,10 @@ jobs:
3737
shell: bash
3838
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
3939
- name: Run tests
40-
run: npm run test-insiders
40+
run: npm run test-smoke
4141
env:
4242
MLM_WEB_LICENSE: true
4343
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}}
4444
MLM_WEB_USER_CRED: ${{secrets.MLM_WEB_USER_CRED}}
4545
DISPLAY: ":17.0"
46+
VSCODE_VERSION: "insider"

.github/workflows/test-pull-request.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,21 @@ jobs:
4646
run: /usr/bin/Xvfb :17 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
4747
shell: bash
4848
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
49-
- name: Run tests
50-
run: npm run test
49+
- name: Package vsix
50+
run: npm run package
51+
- name: npm install
52+
run: npm install
53+
- name: Run Smoke tests
54+
run: npm run test-smoke
5155
env:
5256
MLM_WEB_LICENSE: true
5357
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}}
5458
MLM_WEB_USER_CRED: ${{secrets.MLM_WEB_USER_CRED}}
5559
DISPLAY: ":17.0"
60+
- name: Run UI tests
61+
run: npm run test-ui
62+
env:
63+
MLM_WEB_LICENSE: true
64+
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}}
65+
MLM_WEB_USER_CRED: ${{secrets.MLM_WEB_USER_CRED}}
66+
DISPLAY: ":17.0"

.github/workflows/test.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
test-smoke:
16-
name: smoke-${{ matrix.version }}-${{ matrix.os }}
16+
name: ${{ matrix.version }}-${{ matrix.os }}
1717
runs-on: ${{ matrix.os }}
1818
strategy:
1919
fail-fast: false
@@ -31,14 +31,27 @@ jobs:
3131
release: ${{ matrix.version }}
3232
- name: Setup node
3333
uses: actions/setup-node@v4
34+
with:
35+
"node-version": 18.x
3436
- name: npm clean install
3537
run: npm ci
3638
- name: Start Xvfb
3739
run: /usr/bin/Xvfb :17 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
3840
shell: bash
3941
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
40-
- name: Run tests
41-
run: npm run test
42+
- name: Package vsix
43+
run: npm run package
44+
- name: npm install
45+
run: npm install
46+
- name: Run UI tests
47+
run: npm run test-ui
48+
env:
49+
MLM_WEB_LICENSE: true
50+
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}}
51+
MLM_WEB_USER_CRED: ${{secrets.MLM_WEB_USER_CRED}}
52+
DISPLAY: ":17.0"
53+
- name: Run Smoke tests
54+
run: npm run test-smoke
4255
env:
4356
MLM_WEB_LICENSE: true
4457
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}}

0 commit comments

Comments
 (0)