Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
uuf6429 committed Jan 11, 2025
1 parent d4edbcb commit 567a409
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/smoke-matrix.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# $schema: ./smoke-schema.json
$schema: ./smoke-schema.json

name: Smoke Test

on:
Expand All @@ -6,7 +9,7 @@ on:

jobs:
Official:
name: 🛡️
name: "🛡️ #${{ strategy.job-index }}"
uses: ./.github/workflows/smoke-workflow.yml
with:
name: ${{ matrix.name }}
Expand Down Expand Up @@ -56,7 +59,7 @@ jobs:
./vendor/bin/phpunit --colors=always --testdox
Unofficial:
name:
name: "✨️ #${{ strategy.job-index }}"
uses: ./.github/workflows/smoke-workflow.yml
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
Expand Down
81 changes: 81 additions & 0 deletions .github/workflows/smoke-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/root",
"definitions": {
"root": {
"type": "object",
"properties": {
"jobs": {
"$ref": "#/definitions/jobs"
}
}
},
"jobs": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/job"
}
},
"job": {
"type": "object",
"properties": {
"strategy": {
"$ref": "#/definitions/strategy"
}
}
},
"strategy": {
"type": "object",
"properties": {
"matrix": {
"$ref": "#/definitions/matrix"
}
}
},
"matrix": {
"type": "object",
"properties": {
"include": {
"type": "array",
"items": {
"$ref": "#/definitions/matrix-item"
}
}
}
},
"matrix-item": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"driverRepoUrl": {
"type": "string",
"format": "uri"
},
"php": {
"type": "number"
},
"setUpCmd": {
"type": "string",
"x-intellij-language-injection": "json"
},
"testCmd": {
"type": "string",
"x-intellij-language-injection": "bash"
},
"tearDownCmd": {
"type": "string",
"x-intellij-language-injection": "php"
}
},
"required": [
"driverRepoUrl",
"name",
"php",
"testCmd"
]
}
}
}

0 comments on commit 567a409

Please sign in to comment.