Skip to content

Commit

Permalink
Merge pull request #58 from greg0ire/locked-deps
Browse files Browse the repository at this point in the history
Allow locking the deps
  • Loading branch information
greg0ire authored Jan 30, 2025
2 parents 297a674 + 2ff95c8 commit 9061a3b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
description: "The version of the package being tested, in case of circular dependencies."
required: false
type: "string"
composer-dependency-versions:
description: "whether the job should install the locked, highest, or lowest versions of Composer dependencies."
default: "highest"
required: false
type: "string"
composer-options:
description: "Additional flags for the composer install command."
default: "--prefer-dist"
Expand Down Expand Up @@ -43,7 +48,7 @@ jobs:
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "highest"
dependency-versions: "${{ inputs.composer-dependency-versions }}"
composer-options: "${{ inputs.composer-options }}"

# https://github.com/doctrine/.github/issues/3
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
description: "The version of the package being tested, in case of circular dependencies."
required: false
type: "string"
composer-dependency-versions:
description: "whether the job should install the locked, highest, or lowest versions of Composer dependencies."
default: "highest"
required: false
type: "string"
composer-options:
description: "Additional flags for the composer install command."
default: "--prefer-dist"
Expand Down Expand Up @@ -42,7 +47,7 @@ jobs:
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "highest"
dependency-versions: "${{ inputs.composer-dependency-versions }}"
composer-options: "${{ inputs.composer-options }}"

- name: "Run a static analysis with phpstan/phpstan"
Expand Down

0 comments on commit 9061a3b

Please sign in to comment.