Skip to content

Commit ee23d78

Browse files
committed
Add tests to push check
1 parent ddd9937 commit ee23d78

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/workflows/push-check.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ on:
99
- 'release-*'
1010

1111
env:
12-
NODE_VERSION: 18.17.1
12+
NODE_VERSION: '20.18.0'
13+
# Force a path with spaces and to test extension works in these scenarios
14+
# Unicode characters are causing 2.7 failures so skip that for now.
15+
special-working-directory: './path with spaces'
16+
special-working-directory-relative: 'path with spaces'
1317

1418
jobs:
1519
build-vsix:
@@ -23,4 +27,32 @@ jobs:
2327
- name: Build VSIX
2428
uses: ./.github/actions/build-vsix
2529
with:
26-
node_version: ${{ env.NODE_VERSION }}
30+
node_version: ${{ env.NODE_VERSION }}
31+
32+
ts-unit-tests:
33+
name: TypeScript Unit Tests
34+
runs-on: ${{ matrix.os }}
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
os: [ubuntu-latest, windows-latest]
39+
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v4
43+
44+
- name: Install Node
45+
uses: actions/setup-node@v4
46+
with:
47+
node-version: ${{ env.NODE_VERSION }}
48+
cache: 'npm'
49+
cache-dependency-path: ${{ env.special-working-directory-relative }}/package-lock.json
50+
51+
- name: Install Dependencies
52+
run: npm ci
53+
54+
- name: Compile Tests
55+
run: npm run pretest
56+
57+
- name: Run Tests
58+
run: npm run unittest

0 commit comments

Comments
 (0)