File tree Expand file tree Collapse file tree 1 file changed +46
-1
lines changed
Expand file tree Collapse file tree 1 file changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,57 @@ jobs:
7272 - name : Run knip checks
7373 run : pnpm knip
7474
75- unit- test :
75+ test-extension :
7676 runs-on : ${{ matrix.os }}
7777 strategy :
7878 matrix :
7979 os : [ubuntu-latest, windows-latest]
8080 steps :
81+ - name : Checkout code
82+ uses : actions/checkout@v4
83+ - name : Setup Node.js
84+ uses : actions/setup-node@v4
85+ with :
86+ node-version : ${{ env.NODE_VERSION }}
87+ cache : ' npm'
88+ - name : Install dependencies
89+ run : npm run install:all
90+ - name : Compile (to build and copy WASM files)
91+ run : npm run compile
92+ - name : Run jest unit tests
93+ run : npx jest --silent
94+ - name : Run vitest unit tests
95+ run : npx vitest run --silent
96+
97+ test-webview :
98+ runs-on : ${{ matrix.os }}
99+ strategy :
100+ matrix :
101+ os : [ubuntu-latest, windows-latest]
102+ steps :
103+ - name : Checkout code
104+ uses : actions/checkout@v4
105+ - name : Install pnpm
106+ uses : pnpm/action-setup@v4
107+ with :
108+ version : ${{ env.PNPM_VERSION }}
109+ - name : Setup Node.js
110+ uses : actions/setup-node@v4
111+ with :
112+ node-version : ${{ env.NODE_VERSION }}
113+ cache : ' pnpm'
114+ - name : Install dependencies
115+ run : pnpm install
116+ - name : Run unit tests
117+ working-directory : webview-ui
118+ run : pnpm test
119+
120+ unit-test :
121+ needs : [test-extension, test-webview]
122+ runs-on : ubuntu-latest
123+ steps :
124+ - name : NO-OP
125+ run : echo "All unit tests passed."
81126 - name : Checkout code
82127 uses : actions/checkout@v4
83128 - name : Install pnpm
You can’t perform that action at this time.
0 commit comments