Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f2c53a8
feat: 接入 BPS 搜索管理开关与默认模板
ranxi2001 Nov 14, 2026
d2832a9
ci: 添加实际 BPS 搜索组件截图入口
ranxi2001 Nov 14, 2026
d0ba740
fix: 保留质量规则搜索字段并补管理入口说明
ranxi2001 Nov 14, 2026
e7a8185
Merge branch 'feat/bps-account-search-20261115' into feat/bps-search-…
ranxi2001 Nov 14, 2026
c7d4381
Merge branch 'feat/bps-account-search-20261115' into feat/bps-search-…
ranxi2001 Nov 14, 2026
2fd8166
fix: 同步搜索兼容提示与质量规则保存校验
ranxi2001 Nov 14, 2026
359e117
test: 同步批量账号搜索默认值和匿名预览
ranxi2001 Nov 14, 2026
942f8e9
Merge branch 'feat/bps-account-search-20261115' into feat/bps-search-…
ranxi2001 Nov 14, 2026
8d49f87
Merge branch 'feat/bps-account-search-20261115' into feat/bps-search-…
ranxi2001 Nov 14, 2026
4a85595
Merge branch 'feat/bps-account-search-20261115' into feat/bps-search-…
ranxi2001 Nov 14, 2026
a36f4d4
Merge branch 'feat/bps-account-search-20261115' into feat/bps-search-…
ranxi2001 Nov 14, 2026
2451c05
docs: 明确当前密文任务不能省略
ranxi2001 Nov 14, 2026
5439632
test: 更新质量规则完整策略的搜索默认值
ranxi2001 Nov 14, 2026
1b6fb36
Merge branch 'feat/bps-account-search-20261115' into feat/bps-search-…
ranxi2001 Nov 14, 2026
730ed1a
test: 修复账号编辑 Pinia 环境与质量搜索默认断言
ranxi2001 Nov 14, 2026
fa07ae7
Merge branch 'feat/bps-account-search-20261115' into feat/bps-search-…
ranxi2001 Nov 14, 2026
253f753
fix: 搜索开关缺省值等价恢复并保留人工修改冲突
ranxi2001 Nov 14, 2026
b183fc9
feat: 支持账号运维多邮箱和 OAuth 用途分类
ranxi2001 Nov 14, 2026
c4cd9a2
feat: 复用供应商余额并按渠道投递运维通知
ranxi2001 Nov 14, 2026
d32ea8c
docs: 说明供应商余额联动并补充界面验收脚本
ranxi2001 Nov 14, 2026
9745a52
fix: 恢复通知发送前重新核对供应商余额
ranxi2001 Nov 14, 2026
604c67d
fix: 分别登记多邮箱、供应商余额与 OAuth 分类提示
ranxi2001 Nov 14, 2026
d58d997
fix: 增加渠道 Key 时保留同一余额告警事件
ranxi2001 Nov 14, 2026
30638eb
Merge latest PR850 base into account operations follow-up
ranxi2001 Nov 15, 2026
da3b8d1
fix: repair account operations CI imports and i18n fixtures
ranxi2001 Nov 15, 2026
9412308
Merge remote-tracking branch 'origin/production' into feat/bps-search…
ranxi2001 Nov 15, 2026
2628fb3
ci: 补齐 BPS 默认模板前后界面与字段联动证据
ranxi2001 Nov 15, 2026
05b1f72
fix: 修正多邮箱回归与截图入口并处理数据库游标关闭
ranxi2001 Nov 15, 2026
9474eb2
Merge remote-tracking branch 'origin/production' into maintenance/pr8…
ranxi2001 Nov 15, 2026
cb65614
ci: 在前端目录加载截图所需的 Tailwind 主题
ranxi2001 Nov 15, 2026
17f660a
merge: 保留 BPS 搜索与渠道运维的新功能提示回归
ranxi2001 Nov 15, 2026
6721c65
Merge commit '17f660a37' into maintenance/pr862-merge-20261115
ranxi2001 Nov 15, 2026
0a2fecf
test: 按 JSON 字段核对渠道统计隐私,避免时间戳误报
ranxi2001 Nov 15, 2026
ae9a964
Merge branch 'maintenance/pr859-evidence-20261115' into maintenance/p…
ranxi2001 Nov 15, 2026
5f4ebab
test: 显式检查统计响应的 JSON 类型断言
ranxi2001 Nov 15, 2026
209ccfc
Merge branch 'maintenance/pr859-evidence-20261115' into maintenance/p…
ranxi2001 Nov 15, 2026
c2f8ad5
ci: 补齐多人通知与供应商关联的中英文界面对照
ranxi2001 Nov 15, 2026
5f7142d
ci: 等待弹窗动画完成并核对可见边界后截图
ranxi2001 Nov 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions .github/scripts/account-ops-team-screenshots.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
import { execFileSync } from 'node:child_process'
import { mkdirSync, writeFileSync, rmSync } from 'node:fs'
import { resolve, join } from 'node:path'
import { pathToFileURL } from 'node:url'
const root = resolve('frontend'), out = process.env.EVIDENCE_DIR
const { createServer } = await import(pathToFileURL(join(root, 'node_modules/vite/dist/node/index.js')))
const { default: vue } = await import(pathToFileURL(join(root, 'node_modules/@vitejs/plugin-vue/dist/index.mjs')))
const { chromium } = await import(pathToFileURL(process.env.SUB2API_PLAYWRIGHT_MODULE))
const baseline = 'ce45c5a85f2a68544994ac146f3f809f31308e1a'
const head = execFileSync('git', ['rev-parse', 'HEAD'], { encoding: 'utf8' }).trim()
const origin = 'http://127.0.0.1:4309', entry = join(root, '.account-ops-team-preview.js')
const original = new Map(['AccountOpsEmailDialog.vue', 'AccountOpsRuleList.vue'].map(name => [join(root, 'src/components/admin/operations', name), execFileSync('git', ['show', `${baseline}:frontend/src/components/admin/operations/${name}`], { encoding: 'utf8' })]))
async function settleDialog(page) {
await page.waitForFunction(() => {
const panel=document.querySelector('.modal-content'), overlay=panel?.parentElement
if(!panel||!overlay||overlay.className.includes('modal-enter'))return false
const bounds=panel.getBoundingClientRect()
return Number(getComputedStyle(overlay).opacity)===1 && Number(getComputedStyle(panel).opacity)===1 && bounds.width>0 && bounds.height>0 && bounds.top>=0 && bounds.bottom<=innerHeight
})
}
let before = true, server, browser
mkdirSync(out, { recursive: true })
try {
writeFileSync(entry, `
import {createApp,h,ref} from 'vue';import {createPinia} from 'pinia';
import {i18n,loadLocaleMessages} from '/src/i18n/index.ts';import {apiClient} from '/src/api/client.ts';
import Rules from '/src/components/admin/operations/AccountOpsRuleList.vue';
import Email from '/src/components/admin/operations/AccountOpsEmailDialog.vue';
import Groups from '/src/components/admin/operations/AccountOpsGroupDialog.vue';
import '/src/style.css';
const language=new URLSearchParams(location.search).get('lang')||'zh';await loadLocaleMessages(language);i18n.global.locale.value=language;
if(location.search.includes('dark'))document.documentElement.classList.add('dark');
const before=location.search.includes('before');
const accounts=[1,2].map(id=>({account_id:id,account_name:'示例供应商 Key '+id,platform:'openai',type:'apikey',provider_id:before?undefined:7,balance:35,unit:'USD',balance_status:'ok',probe_enabled:true,received_at:'2026-01-01T08:00:00Z',usage_windows:[]}));
accounts.push({account_id:3,account_name:'示例临时 OAuth',platform:'openai',type:'oauth',oauth_lifecycle:'temporary',balance:null,unit:'%',balance_status:'unknown',received_at:null,usage_windows:[]});
accounts.push({account_id:4,account_name:'示例长期 OAuth',platform:'openai',type:'oauth',oauth_lifecycle:'long_term',balance:null,unit:'%',balance_status:'unknown',received_at:null,usage_windows:[]});
const groups=[{id:'manual-provider-7',name:'示例供应商',provider_id:before?undefined:7,provider:'provider',site:'https://supplier.example.test',mode:'manual',account_ids:[1,2]},...accounts.slice(2).map(a=>({id:'manual-oauth-'+a.account_id,name:a.account_name,provider:'manual',site:'',mode:'manual',account_ids:[a.account_id]}))];
const config={enabled:true,recipient:before?'ops@example.test':'ops@example.test, oncall@example.test',email_name:'值班团队',balance_low:true,weekly_quota:true,cooldown_minutes:60,groups,balance_thresholds:[1,2].map(account_id=>({account_id,enabled:true,threshold:50,unit:'USD',notify_alert:true,notify_recovery:true}))};
apiClient.defaults.adapter=async c=>({config:c,status:200,statusText:'OK',headers:{},data:{code:0,data:c.url.includes('/providers')?{items:[{id:7,name:'示例供应商'}],total:1}:config}});
const email=ref(false),group=ref(false);
createApp({setup(){return()=>h('main',{class:'p-6 space-y-4'},[
h('p',{class:'text-sm text-gray-500'},'虚构数据 · 实际账号运维组件'),
h('button',{'data-testid':'open-email',class:'btn btn-primary',onClick:()=>email.value=true},'配置收件邮箱'),
h('button',{'data-testid':'open-groups',class:'btn btn-secondary',onClick:()=>group.value=true},'关联供应商'),
h(Rules,{accounts,groups,config,userId:42,loading:false,ready:true,error:''}),
h(Email,{show:email.value,config,smtpConfigured:true,userId:42,onClose:()=>email.value=false}),
h(Groups,{show:group.value,groups,accounts,onClose:()=>group.value=false})
])}}).use(createPinia()).use(i18n).mount('#app');
`)
process.chdir(root) // Tailwind resolves the project theme relative to cwd.
server = await createServer({ root, configFile: false, server: { host: '127.0.0.1', port: 4309, strictPort: true }, resolve: { alias: { '@': join(root, 'src') } }, plugins: [{ name: 'baseline-components', enforce: 'pre', load(id) { if (before && original.has(id)) return original.get(id) }, configureServer(vite) {
vite.middlewares.use((req, res, next) => {
if (req.url?.split('?')[0] !== '/preview') return next()
res.setHeader('Content-Type', 'text/html'); res.end('<!doctype html><html><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><div id="app"></div><script type="module" src="/.account-ops-team-preview.js"></script></html>')
})
} }, vue()] })

await server.listen(); browser = await chromium.launch({ headless: true })
const captures = []
for (const language of ['zh', 'en']) for (const phase of ['before', 'after']) {
before = phase === 'before'; server.moduleGraph.invalidateAll()
const context = await browser.newContext({ viewport: { width: 1440, height: 1000 } })
await context.route('**/*', route => route.request().url().startsWith(origin) ? route.continue() : route.abort())
const page = await context.newPage(), errors = []
page.on('pageerror', e => { errors.push(e.message); console.error('preview page error:', e.message) })
await page.goto(`${origin}/preview?${phase}&lang=${language}`, { waitUntil: 'networkidle' })
await page.getByTestId('account-ops-rules').waitFor()
await page.screenshot({ path: join(out, `${phase}-${language}-rules.png`), fullPage: true, animations: 'disabled' })
await page.getByTestId('open-email').click(); await page.locator('#account-ops-email').waitFor(); await settleDialog(page)
await page.screenshot({ path: join(out, `${phase}-${language}-email.png`), fullPage: true, animations: 'disabled' })
if (phase === 'after') {
if (await page.locator('textarea#account-ops-email').count() !== 1) throw new Error('multiple-email editor missing')
await page.reload({ waitUntil: 'networkidle' })
await page.getByTestId('open-groups').click()
await page.getByTestId('ops-provider-select').first().evaluate(el => { el.closest('details').open = true })
await page.getByTestId('ops-provider-select').first().focus()
await page.getByTestId('ops-provider-select').first().locator('option').filter({ hasText: '示例供应商' }).waitFor({ state: 'attached' })
await settleDialog(page)
await page.screenshot({ path: join(out, `after-${language}-provider-link.png`), fullPage: true, animations: 'disabled' })
}
if (errors.length) throw new Error(errors.join('\n'))
captures.push({ phase, language, source: before ? baseline : head }); await context.close()
}
writeFileSync(join(out, 'source.json'), JSON.stringify({ head, baseline, captures, scope: 'Actual Vue components with synthetic data; all external requests blocked' }, null, 2))
} finally { await browser?.close(); await server?.close(); rmSync(entry, { force: true }) }
73 changes: 73 additions & 0 deletions .github/scripts/bps-search-preview.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
// Render the actual Vue component in CI with a fictional administrator.
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'
import { execFileSync } from 'node:child_process'
import { createRequire } from 'node:module'
import { tmpdir } from 'node:os'
import { dirname, join, resolve } from 'node:path'
import { pathToFileURL } from 'node:url'
const [repoArg, outputArg, baseline = ''] = process.argv.slice(2)
const repo = resolve(repoArg), output = resolve(outputArg), root = join(repo, 'frontend')
const require = createRequire(join(root, 'package.json'))
const { createServer } = await import(pathToFileURL(join(dirname(require.resolve('vite/package.json')), 'dist/node/index.js')).href)
const vue = (await import(pathToFileURL(require.resolve('@vitejs/plugin-vue')).href)).default
const { chromium } = await import(pathToFileURL(process.env.SUB2API_PLAYWRIGHT_MODULE).href)
const entry = '.bps-search-preview.js', cacheDir = mkdtempSync(join(tmpdir(), 'bps-search-preview-'))
let server, browser
mkdirSync(output, { recursive: true })
try {
writeFileSync(join(root, entry), `
import {mount} from '@vue/test-utils';
import {createPinia,setActivePinia} from 'pinia';
import {i18n,loadLocaleMessages} from '/src/i18n/index.ts';
import {useAuthStore} from '/src/stores/auth.ts';
import View from '/src/components/admin/operations/BPSDefaultsCard.vue';
import {defaultExcelBPSDefaults} from '/src/utils/excelBPSDefaults.ts';
import '/src/style.css';
await loadLocaleMessages('zh');i18n.global.locale.value='zh';
const pinia=createPinia();setActivePinia(pinia);useAuthStore().user={id:42,role:'admin',username:'demo'};
document.querySelector('#app').innerHTML='<p class="mb-4 text-sm text-gray-500">OAuth 自动配置 → BPS 默认模板 · 实际组件 / 虚构管理员</p><div id="preview"></div>';
window.preview=mount(View,{attachTo:'#preview',props:{groups:[],modelValue:{...defaultExcelBPSDefaults(),all_models:true},'onUpdate:modelValue':value=>window.preview.setProps({modelValue:value})},global:{plugins:[pinia,i18n]}});
`)
process.chdir(root)
server = await createServer({ root, configFile: false, cacheDir,
resolve: { alias: { '@': join(root, 'src') } },
plugins: [{ name: 'bps-search-fixture', enforce: 'pre', load(id) {
if (baseline && id === join(root,'src/components/admin/operations/BPSDefaultsCard.vue')) return execFileSync('git',['show',baseline+':frontend/src/components/admin/operations/BPSDefaultsCard.vue'],{cwd:repo,encoding:'utf8'})
}, configureServer(vite) { vite.middlewares.use((request, response, next) => {
if (request.url === '/') { response.setHeader('Content-Type','text/html'); response.end('<!doctype html><html lang="zh"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><div id="app" style="padding:24px;max-width:760px;margin:auto"></div><script type="module" src="/' + entry + '"></script></html>') }
else if (request.url === '/favicon.ico') { response.statusCode = 204; response.end() }
else next()
}) } }, vue()], server: { host: '127.0.0.1', port: 4299, strictPort: true },
optimizeDeps: { entries: [], include: ['vue','pinia','vue-i18n','axios','@vue/test-utils'] } })
await server.listen(); browser = await chromium.launch({ headless: true })
const page = await browser.newPage({ viewport: { width: 1100, height: 1000 } }), errors = []
page.on('pageerror', error => errors.push(error.message))
await page.route('**/*', route => new URL(route.request().url()).origin === 'http://127.0.0.1:4299' ? route.continue() : route.abort())
await page.goto('http://127.0.0.1:4299', { waitUntil: 'networkidle' })
await page.getByTestId('bps-all-models').waitFor()
if (baseline) {
if (await page.getByTestId('bps-search-options').count()) throw Error('Baseline unexpectedly includes search options')
await page.screenshot({path:join(output,'before.png'),fullPage:true})
} else {
await page.getByTestId('bps-search-options').waitFor()
await page.screenshot({ path: join(output,'default-off.png'), fullPage: true })
await page.getByTestId('excel-bps-web-search').check()
await page.getByTestId('excel-bps-web-search-auto').check()
await page.waitForFunction(() => window.preview.props('modelValue').web_search && window.preview.props('modelValue').web_search_auto)
await page.screenshot({ path: join(output,'search-and-auto.png'), fullPage: true })
await page.evaluate(() => document.documentElement.classList.add('dark'))
await page.screenshot({ path: join(output,'dark.png'), fullPage: true })
await page.setViewportSize({ width: 390, height: 700 })
await page.screenshot({ path: join(output,'mobile.png'), fullPage: true })
await page.getByTestId('excel-bps-web-search').uncheck()
await page.waitForFunction(() => !window.preview.props('modelValue').web_search && !window.preview.props('modelValue').web_search_auto)
if (await page.getByTestId('excel-bps-web-search-auto').isChecked()) throw Error('Automatic search remained enabled')
const saved = await page.evaluate(() => window.preview.props('modelValue'))
if (saved.web_search || saved.web_search_auto) throw Error('Template model retained disabled search options')
}
if (errors.length) throw Error(JSON.stringify(errors))
writeFileSync(join(output,'evidence.json'),JSON.stringify({ source:execFileSync('git',['rev-parse','HEAD'],{cwd:repo,encoding:'utf8'}).trim(),baseline:baseline||null,fixture:true,errors,states:baseline?['before']:['default-off','search-and-auto','dark','mobile'],production:false },null,2))
} finally {
await browser?.close(); await server?.close()
rmSync(join(root,entry),{force:true}); rmSync(cacheDir,{recursive:true,force:true})
}
66 changes: 66 additions & 0 deletions .github/workflows/account-ops-team.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Account operations team and provider balances
on:
pull_request:
paths:
- 'backend/internal/service/account_ops*'
- 'backend/internal/repository/account_ops*'
- 'backend/internal/handler/admin/account_ops*'
- 'frontend/src/components/admin/operations/AccountOps*'
- 'frontend/src/components/admin/operations/__tests__/AccountOps*'
- 'frontend/src/api/admin/accountOps.ts'
- 'frontend/src/views/admin/AccountOpsView.vue'
- 'frontend/src/components/admin/operations/MatureProvidersPanel.vue'
- '.github/workflows/account-ops-team.yml'
- '.github/scripts/account-ops-team-screenshots.mjs'
workflow_dispatch:
permissions:
contents: read
jobs:
backend:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions/setup-go@v6
with:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
- run: go test -race -tags=unit ./internal/service ./internal/handler/admin -run '^TestAccountOps' -count=1 -timeout=10m
working-directory: backend
- run: go test -tags=integration ./internal/repository -run '^TestAccountOpsProviderSnapshot' -count=1 -v -timeout=10m
working-directory: backend
frontend:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0
- uses: pnpm/action-setup@v6
with:
version: 9
- uses: actions/setup-node@v6
with:
node-version: '22'
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml
- run: pnpm --dir frontend install --frozen-lockfile
- run: pnpm --dir frontend exec vitest run src/components/admin/operations/__tests__/AccountOps src/components/common/__tests__/NewFeatureBadge.spec.ts src/views/admin/__tests__/AccountOpsView.spec.ts src/views/admin/__tests__/MatureProviders.spec.ts
- run: pnpm --dir frontend run build
- name: Install screenshot browser
run: |
npm install --prefix "$RUNNER_TEMP/ops-team-browser" --no-save --ignore-scripts playwright@1.56.1
node "$RUNNER_TEMP/ops-team-browser/node_modules/playwright/cli.js" install --with-deps chromium
- name: Render actual components with synthetic provider and account data
env:
EVIDENCE_DIR: ${{ runner.temp }}/account-ops-team-ui
SUB2API_PLAYWRIGHT_MODULE: ${{ runner.temp }}/ops-team-browser/node_modules/playwright/index.mjs
run: node .github/scripts/account-ops-team-screenshots.mjs
- uses: actions/upload-artifact@v7
if: always()
with:
name: account-ops-team-ui-${{ github.event.pull_request.head.sha || github.sha }}
path: ${{ runner.temp }}/account-ops-team-ui
68 changes: 68 additions & 0 deletions .github/workflows/bps-search.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: BPS search protocol and settings
on:
pull_request:
paths:
- backend/internal/service/basispoints/web_search*
- backend/internal/service/openai_excel_bps_search*
- backend/internal/service/bps_search_settings_test.go
- frontend/src/components/account/ExcelBPSSearchOptions.vue
- frontend/src/components/account/__tests__/ExcelBPSSearchOptions.spec.ts
- frontend/src/utils/excelBPSDefaults.ts
- .github/scripts/bps-search-preview.mjs
- .github/workflows/bps-search.yml
permissions:
contents: read
jobs:
search-protocol:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-go@v6
with:
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
- working-directory: backend
run: go test -race ./internal/service/basispoints -run 'Test(WebSearch|AlphaSearch|ToolChoice|CurrentEncrypted|CompactionPolicy)' -count=1 -v
- working-directory: backend
run: go test -race -tags=unit ./internal/service -run 'Test(ExcelBPSAccountSearch|ExcelBPSSearch|BPSSearchDefaults)' -count=1 -v -timeout=10m
- working-directory: backend
run: go test -tags=integration ./internal/repository -run '^TestQuality(BPSSnapshotEqualDefaultsAndManualChanges|EnableBPSRestoreAfterAccountEditorSave|BPSSearchRestorePreservesManualChanges)$' -count=1 -v -timeout=10m
search-ui:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: pnpm/action-setup@v6
with:
version: 9
- uses: actions/setup-node@v6
with:
node-version: '22'
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml
- run: pnpm --dir frontend install --frozen-lockfile
- run: pnpm --dir frontend exec vitest run src/components/account/__tests__/ExcelBPSSearchOptions.spec.ts src/components/common/__tests__/NewFeatureBadge.spec.ts src/components/account/__tests__/EditAccountModal.spec.ts src/components/account/__tests__/BulkEditAccountModal.spec.ts src/views/admin/__tests__/AutoConfigView.spec.ts src/composables/__tests__/useExcelBPSDefaults.spec.ts src/utils/__tests__/qualityRulePatch.spec.ts src/i18n/__tests__/localeKeyCompleteness.spec.ts
- run: pnpm --dir frontend typecheck
- name: Install isolated screenshot browser
run: |
npm install --prefix "$RUNNER_TEMP/bps-search-browser" --no-save --ignore-scripts playwright@1.56.1
node "$RUNNER_TEMP/bps-search-browser/node_modules/playwright/cli.js" install --with-deps chromium
- name: Fetch immutable before UI
run: git fetch --no-tags --depth=1 origin 713cb0f3efe3f838d159cd57998128c2cdaa84b1
- name: Render actual BPS search settings
env:
SUB2API_PLAYWRIGHT_MODULE: ${{ runner.temp }}/bps-search-browser/node_modules/playwright/index.mjs
run: |
node .github/scripts/bps-search-preview.mjs "$GITHUB_WORKSPACE" "$RUNNER_TEMP/bps-search-evidence/before" 713cb0f3efe3f838d159cd57998128c2cdaa84b1
node .github/scripts/bps-search-preview.mjs "$GITHUB_WORKSPACE" "$RUNNER_TEMP/bps-search-evidence/after"
- uses: actions/upload-artifact@v7
if: always()
with:
name: bps-search-evidence-${{ github.event.pull_request.head.sha }}
path: ${{ runner.temp }}/bps-search-evidence
retention-days: 30
Loading
Loading