Skip to content

Commit 9061a3b

Browse files
authored
Merge pull request #58 from greg0ire/locked-deps
Allow locking the deps
2 parents 297a674 + 2ff95c8 commit 9061a3b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/coding-standards.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
description: "The version of the package being tested, in case of circular dependencies."
1414
required: false
1515
type: "string"
16+
composer-dependency-versions:
17+
description: "whether the job should install the locked, highest, or lowest versions of Composer dependencies."
18+
default: "highest"
19+
required: false
20+
type: "string"
1621
composer-options:
1722
description: "Additional flags for the composer install command."
1823
default: "--prefer-dist"
@@ -43,7 +48,7 @@ jobs:
4348
- name: "Install dependencies with Composer"
4449
uses: "ramsey/composer-install@v3"
4550
with:
46-
dependency-versions: "highest"
51+
dependency-versions: "${{ inputs.composer-dependency-versions }}"
4752
composer-options: "${{ inputs.composer-options }}"
4853

4954
# https://github.com/doctrine/.github/issues/3

.github/workflows/phpstan.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
description: "The version of the package being tested, in case of circular dependencies."
1414
required: false
1515
type: "string"
16+
composer-dependency-versions:
17+
description: "whether the job should install the locked, highest, or lowest versions of Composer dependencies."
18+
default: "highest"
19+
required: false
20+
type: "string"
1621
composer-options:
1722
description: "Additional flags for the composer install command."
1823
default: "--prefer-dist"
@@ -42,7 +47,7 @@ jobs:
4247
- name: "Install dependencies with Composer"
4348
uses: "ramsey/composer-install@v3"
4449
with:
45-
dependency-versions: "highest"
50+
dependency-versions: "${{ inputs.composer-dependency-versions }}"
4651
composer-options: "${{ inputs.composer-options }}"
4752

4853
- name: "Run a static analysis with phpstan/phpstan"

0 commit comments

Comments
 (0)