mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
generate test jobs
This commit is contained in:
parent
4840b04e99
commit
74a103f596
1 changed files with 24 additions and 0 deletions
|
@ -166,12 +166,36 @@ function generateBuildJobs(): Record<string, unknown> {
|
|||
return jobs;
|
||||
}
|
||||
|
||||
function generateTestJobs(): Record<string, unknown> {
|
||||
const jobs: Record<string, unknown> = {};
|
||||
|
||||
for (const os of platforms) {
|
||||
for (const kind of kinds) {
|
||||
if (os != "linux" && kind == "debug") continue;
|
||||
|
||||
jobs[`test_${os}_${kind}`] = {
|
||||
name: `test / ${os} / ${kind}`,
|
||||
"runs-on": slowRunners[os],
|
||||
"timeout-minutes": 60,
|
||||
step: [`test_${os}_${kind}`],
|
||||
env,
|
||||
steps: [
|
||||
...chechout,
|
||||
],
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
return jobs;
|
||||
}
|
||||
|
||||
const ci = {
|
||||
name: "ci",
|
||||
// FIXME
|
||||
on: [/*"push",*/ "pull_request"],
|
||||
jobs: {
|
||||
...generateBuildJobs(),
|
||||
...generateTestJobs(),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue