File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ workflow_call :
3+ inputs :
4+ os :
5+ required : false
6+ description : " runs-on property, ex: ubuntu-latest, windows-latest"
7+ type : string
8+ default : " ubuntu-latest"
9+
10+ jobs :
11+ eval :
12+ name : ' yarn:eval'
13+ runs-on : ${{ input.os }}
14+ steps :
15+ - name : Configure git longpaths if on Windows
16+ if : ${{ runner.os == 'Windows' }}
17+ run : git config --system core.longpaths true
18+ - uses : actions/checkout@v4
19+ - uses : actions/setup-node@v4
20+ with :
21+ node-version : lts/*
22+ cache : yarn
23+ - uses : actions/setup-java@v4
24+ with :
25+ distribution : ' temurin'
26+ java-version : ' 11'
27+ - run : yarn
28+ - run : yarn build
29+ - name : Eval-based E2E tests
30+ shell : bash
31+ run : |
32+ cd packages/mcp
33+ yarn:eval
Original file line number Diff line number Diff line change 1818 "lint" : " wireit" ,
1919 "start" : " yarn build && npm link && mcp-inspector sf-mcp-server" ,
2020 "test" : " wireit" ,
21+ "test:eval" : " wireit" ,
2122 "test:only" : " wireit"
2223 },
2324 "repository" : " salesforcecli/mcp" ,
130131 ],
131132 "output" : []
132133 },
134+ "test:eval" : {
135+ "command" : " vitest run" ,
136+ "files" : [
137+ " test/**/*.eval.ts"
138+ ],
139+ "dependencies" : [
140+ " test:compile"
141+ ],
142+ "output" : []
143+ },
133144 "test" : {
134145 "command" : " nyc mocha \" test/**/*.test.ts\" " ,
135146 "env" : {
You can’t perform that action at this time.
0 commit comments