File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Platform tests
2+
3+ on :
4+ push :
5+ branches : [codex/issue-134-platform-tests]
6+ schedule :
7+ - cron : ' 0 3 * * 1'
8+ workflow_dispatch :
9+
10+ permissions :
11+ contents : read
12+
13+ jobs :
14+ platform :
15+ name : Tests (${{ matrix.os }})
16+ runs-on : ${{ matrix.os }}
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ os : [windows-latest, macos-latest]
21+
22+ defaults :
23+ run :
24+ shell : bash
25+ working-directory : client
26+
27+ steps :
28+ - name : Checkout
29+ uses : actions/checkout@v4
30+
31+ - name : Setup Java
32+ id : java
33+ uses : actions/setup-java@v4
34+ with :
35+ java-version : 21
36+ distribution : temurin
37+
38+ - name : Setup Node.js
39+ uses : actions/setup-node@v4
40+ with :
41+ node-version : 22
42+ cache : npm
43+ cache-dependency-path : client/package-lock.json
44+
45+ - name : Install dependencies
46+ run : npm ci
47+
48+ - name : Run client unit tests
49+ run : npm run test:unit
50+
51+ - name : Type-check tests
52+ run : npm run test:typecheck
53+
54+ - name : Build server and run server unit tests
55+ working-directory : server
56+ run : |
57+ mvn -B package
58+ mkdir -p ../client/server
59+ cp target/language-server-liquidjava.jar ../client/server/
60+
61+ - name : Run VS Code stable integration tests
62+ env :
63+ JAVA_HOME : ${{ steps.java.outputs.path }}
64+ run : npm test
65+
66+ - name : Upload VS Code logs
67+ if : failure()
68+ uses : actions/upload-artifact@v4
69+ with :
70+ name : vscode-logs-${{ matrix.os }}
71+ path : client/.vscode-test/**/logs
72+ if-no-files-found : ignore
You can’t perform that action at this time.
0 commit comments