1
0
Fork 0
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:
Luca Casonato 2021-03-06 00:03:50 +01:00
parent 4840b04e99
commit 74a103f596
No known key found for this signature in database
GPG key ID: 789878CF6382A84F

View file

@ -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(),
}, },
}; };