Skip to content

Commit 81e0bf8

Browse files
committed
@W-18964528@ Added GHA for yarn:eval script
1 parent 5ac5653 commit 81e0bf8

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/eval-e2e.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

packages/mcp/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
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",
@@ -130,6 +131,16 @@
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": {

0 commit comments

Comments
 (0)