Skip to content

Commit

Permalink
chore: bumping the github workflow schema
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Sep 1, 2023
1 parent 8beb1a7 commit eeb9c6f
Showing 1 changed file with 27 additions and 40 deletions.
67 changes: 27 additions & 40 deletions __tests__/helpers/github-workflow-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,31 @@
{ "$ref": "#/definitions/name" }
]
},
"matrix": {
"$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix",
"description": "A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.",
"oneOf": [{ "type": "object" }, { "$ref": "#/definitions/expressionSyntax" }],
"patternProperties": {
"^(in|ex)clude$": {
"$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#example-including-configurations-in-a-matrix-build",
"oneOf": [
{ "$ref": "#/definitions/expressionSyntax" },
{
"type": "array",
"items": { "type": "object", "additionalProperties": { "$ref": "#/definitions/configuration" } },
"minItems": 1
}
]
}
},
"additionalProperties": {
"oneOf": [
{ "type": "array", "items": { "$ref": "#/definitions/configuration" }, "minItems": 1 },
{ "$ref": "#/definitions/expressionSyntax" }
]
},
"minProperties": 1
},
"reusableWorkflowCallJob": {
"$comment": "https://docs.github.com/en/actions/learn-github-actions/reusing-workflows#calling-a-reusable-workflow",
"description": "Each job must have an id to associate with the job. The key job_id is a string and its value is a map of the job's configuration data. You must replace <job_id> with a string that is unique to the jobs object. The <job_id> must start with a letter or _ and contain only alphanumeric characters, -, or _.",
Expand Down Expand Up @@ -298,26 +323,7 @@
"description": "A strategy creates a build matrix for your jobs. You can define different variations of an environment to run each job in.",
"type": "object",
"properties": {
"matrix": {
"$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix",
"description": "A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.",
"oneOf": [{ "type": "object" }, { "$ref": "#/definitions/expressionSyntax" }],
"patternProperties": {
"^(in|ex)clude$": {
"$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#example-including-configurations-in-a-matrix-build",
"type": "array",
"items": { "type": "object", "additionalProperties": { "$ref": "#/definitions/configuration" } },
"minItems": 1
}
},
"additionalProperties": {
"oneOf": [
{ "type": "array", "items": { "$ref": "#/definitions/configuration" }, "minItems": 1 },
{ "$ref": "#/definitions/expressionSyntax" }
]
},
"minProperties": 1
},
"matrix": { "$ref": "#/definitions/matrix" },
"fail-fast": {
"$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast",
"description": "When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true",
Expand Down Expand Up @@ -561,26 +567,7 @@
"description": "A strategy creates a build matrix for your jobs. You can define different variations of an environment to run each job in.",
"type": "object",
"properties": {
"matrix": {
"$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix",
"description": "A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.",
"oneOf": [{ "type": "object" }, { "$ref": "#/definitions/expressionSyntax" }],
"patternProperties": {
"^(in|ex)clude$": {
"$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#example-including-configurations-in-a-matrix-build",
"type": "array",
"items": { "type": "object", "additionalProperties": { "$ref": "#/definitions/configuration" } },
"minItems": 1
}
},
"additionalProperties": {
"oneOf": [
{ "type": "array", "items": { "$ref": "#/definitions/configuration" }, "minItems": 1 },
{ "$ref": "#/definitions/expressionSyntax" }
]
},
"minProperties": 1
},
"matrix": { "$ref": "#/definitions/matrix" },
"fail-fast": {
"$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast",
"description": "When set to true, GitHub cancels all in-progress jobs if any matrix job fails. Default: true",
Expand Down

0 comments on commit eeb9c6f

Please sign in to comment.