Skip to content

Commit 2405cd1

Browse files
authored
feat: allow fail-fast as an input argument (#25)
1 parent af4f3f1 commit 2405cd1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/integration-README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ See the [integration.yaml](./integration.yaml)
99
| Input | Description | Required | Default |
1010
| ------------------ | ------------------------------------------------------------- | -------- | ----------------------------- |
1111
| matrix | JSON string of [version matrix for Magento](./#matrix-format) | true | NULL |
12+
| 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 |
1213
| package_name | The name of the package | true | NULL |
1314
| source_folder | The source folder of the package | false | $GITHUB_WORKSPACE |
1415
| magento_directory | The folder where Magento will be installed | false | ../magento2 |
@@ -18,7 +19,7 @@ See the [integration.yaml](./integration.yaml)
1819
## Secrets
1920
| Input | Description | Required | Default |
2021
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |
21-
| composer_auth | JSON string of [composer credentials]([#./matrix-format](https://devdocs.magento.com/guides/v2.4/install-gde/prereq/connect-auth.html)) | true | NULL |
22+
| composer_auth | JSON string of [composer credentials]([#./matrix-format](https://devdocs.magento.com/guides/v2.4/install-gde/prereq/connect-auth.html)) | false | NULL |
2223

2324
### Matrix Format
2425

.github/workflows/integration.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ on:
2929
type: string
3030
required: true
3131
description: "The matrix of Magento versions to test against"
32+
33+
fail-fast:
34+
type: boolean
35+
required: false
36+
default: true
3237

3338
test_command:
3439
type: string
@@ -44,6 +49,7 @@ jobs:
4449
integration_test:
4550
runs-on: ${{ matrix.os }}
4651
strategy:
52+
fail-fast: ${{ inputs.fail-fast }}
4753
matrix: ${{ fromJSON(inputs.matrix) }}
4854
services:
4955
elasticsearch:

0 commit comments

Comments
 (0)