mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -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;
|
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 = {
|
const ci = {
|
||||||
name: "ci",
|
name: "ci",
|
||||||
// FIXME
|
// FIXME
|
||||||
on: [/*"push",*/ "pull_request"],
|
on: [/*"push",*/ "pull_request"],
|
||||||
jobs: {
|
jobs: {
|
||||||
...generateBuildJobs(),
|
...generateBuildJobs(),
|
||||||
|
...generateTestJobs(),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue