Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/actionify/src/job.ts>Job#strategy

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
method Job.prototype.strategy
import { Job } from "https://deno.land/x/actionify@0.3.0/src/job.ts";

Use jobs.<job_id>.strategy to use a matrix strategy for your jobs. A matrix strategy lets you use variables in a single job definition to automatically create multiple job runs that are based on the combinations of the variables. For example, you can use a matrix strategy to test your code in multiple versions of a language or on multiple operating systems. For more information, see "Using a matrix for your jobs."

Type Parameters

Matrix extends Record<LiteralString, readonly unknown[]>
Excluded extends Record<LiteralString, unknown>
Included extends Record<LiteralString, unknown>

Parameters

strategy: WithContext<StrategyOptions<Matrix, Excluded, Included>, Base, "jobs:jobId:strategy">