1 Star 0 Fork 0

Vue.js/ecosystem-ci

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vuetify.ts 872 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { runInRepo } from '../utils.ts'
import { RunOptions } from '../types.ts'
import YAML from 'yaml'
export async function test(options: RunOptions) {
await runInRepo({
...options,
repo: 'vuetifyjs/vuetify',
branch: 'master',
beforeTest: 'pnpm exec playwright install chromium',
patchFiles: {
'pnpm-workspace.yaml': (content) => {
try {
const data = YAML.parse(content) ?? {}
const exclude: string[] = Array.isArray(data.minimumReleaseAgeExclude)
? data.minimumReleaseAgeExclude
: []
const vuePkgs = ['@vue/*', 'vue']
for (const name of vuePkgs) {
if (!exclude.includes(name)) exclude.unshift(name)
}
data.minimumReleaseAgeExclude = exclude
return YAML.stringify(data)
} catch {
return content
}
},
},
build: 'vue-ecosystem-ci:build',
test: 'vue-ecosystem-ci:test',
})
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/vuejs/ecosystem-ci.git
git@gitee.com:vuejs/ecosystem-ci.git
vuejs
ecosystem-ci
ecosystem-ci
main

搜索帮助