Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ on:
type: string
required: false
default: "10"
mago-version:
description: "Mago release installed for the format, lint, analyze, guard and mutation-test jobs. Keep in step with the version in mago.toml."
type: string
required: false
default: "1.59.0"
test-env-json:
description: "JSON object of extra env vars exported before running tests (e.g. to override a phpunit.xml.dist connection setting for CI, since PHPUnit's <env> won't override an already-set real env var)."
type: string
Expand Down Expand Up @@ -101,7 +106,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
coverage: none
tools: mago
tools: mago:${{ inputs.mago-version }}

- name: Install dependencies
run: composer install --no-interaction --no-progress ${{ inputs.composer-options }}
Expand Down Expand Up @@ -248,7 +253,7 @@ jobs:
with:
php-version: ${{ inputs.coverage-php-version }}
coverage: pcov
tools: mago
tools: mago:${{ inputs.mago-version }}

- name: Start DB service
if: inputs.db-image != '' && inputs.run-integration
Expand Down
3 changes: 2 additions & 1 deletion docs/workflow-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ graph LR
## `mago` job

Matrix: `php-versions` only. Runs `mago format --check`, `mago lint`,
`mago analyze`, `mago guard`. No DB, no dependency-strategy matrix — the
`mago analyze`, `mago guard` with the Mago release named by `mago-version`. No DB, no dependency-strategy matrix — the
committed `composer.lock` is enough for type resolution.

## `test` job
Expand Down Expand Up @@ -162,6 +162,7 @@ within the same GitHub org.
| `coverage-php-version` | Which matrix leg is canonical for coverage/mutation. |
| `min-msi` | Minimum MSI (%) required to pass `mutation-test` (default `"10"`, config-based per repo). |
| `min-covered-msi` | Minimum covered-code MSI (%) required to pass `mutation-test` (default `"10"`, config-based per repo). |
| `mago-version` | Mago release installed by `mago` and `mutation-test` (default `"1.59.0"`). Pinned so a new Mago release can't fail CI without a code change; keep it in step with `version` in `mago.toml`. |
| `test-env-json` | JSON object of extra env vars exported (via `$GITHUB_ENV`) before running tests in `test` and `mutation-test`. |

Plus `secrets: CODECOV_TOKEN`, `INFECTION_DASHBOARD_API_KEY` on
Expand Down
2 changes: 1 addition & 1 deletion mago.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# [source]
# paths = ["src", "test"]
# includes = ["vendor"]
version = "1"
version = "1.59.0"

[formatter]
preset = "default"
Expand Down