mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-08 19:46:41 +00:00
feat: allow fail-fast as an input argument (#25)
This commit is contained in:
@@ -9,6 +9,7 @@ See the [integration.yaml](./integration.yaml)
|
||||
| Input | Description | Required | Default |
|
||||
| ------------------ | ------------------------------------------------------------- | -------- | ----------------------------- |
|
||||
| matrix | JSON string of [version matrix for Magento](./#matrix-format) | true | NULL |
|
||||
| fail-fast | Same as Github's [fail-fast](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast) | false | true |
|
||||
| package_name | The name of the package | true | NULL |
|
||||
| source_folder | The source folder of the package | false | $GITHUB_WORKSPACE |
|
||||
| magento_directory | The folder where Magento will be installed | false | ../magento2 |
|
||||
@@ -18,7 +19,7 @@ See the [integration.yaml](./integration.yaml)
|
||||
## Secrets
|
||||
| Input | Description | Required | Default |
|
||||
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |
|
||||
| composer_auth | JSON string of [composer credentials]([#./matrix-format](https://devdocs.magento.com/guides/v2.4/install-gde/prereq/connect-auth.html)) | true | NULL |
|
||||
| composer_auth | JSON string of [composer credentials]([#./matrix-format](https://devdocs.magento.com/guides/v2.4/install-gde/prereq/connect-auth.html)) | false | NULL |
|
||||
|
||||
### Matrix Format
|
||||
|
||||
|
||||
@@ -30,6 +30,11 @@ on:
|
||||
required: true
|
||||
description: "The matrix of Magento versions to test against"
|
||||
|
||||
fail-fast:
|
||||
type: boolean
|
||||
required: false
|
||||
default: true
|
||||
|
||||
test_command:
|
||||
type: string
|
||||
required: false
|
||||
@@ -44,6 +49,7 @@ jobs:
|
||||
integration_test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: ${{ inputs.fail-fast }}
|
||||
matrix: ${{ fromJSON(inputs.matrix) }}
|
||||
services:
|
||||
elasticsearch:
|
||||
|
||||
Reference in New Issue
Block a user