-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from localheinz/feature/synchronize
Enhancement: Synchronize with ergebnis/php-library-template
- Loading branch information
Showing
35 changed files
with
399 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @Jan0707 @localheinz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#### Steps required to reproduce the problem | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
#### Expected Result | ||
|
||
* | ||
|
||
#### Actual Result | ||
|
||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This PR | ||
|
||
* [x] | ||
* [ ] | ||
|
||
Follows #. | ||
Related to #. | ||
Fixes #. |
16 changes: 16 additions & 0 deletions
16
.github/actions/composer/composer/determine-cache-directory/action.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-run-steps-action | ||
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs | ||
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-run-steps-actions | ||
# https://getcomposer.org/doc/03-cli.md#composer-cache-dir | ||
|
||
name: "Determine composer cache directory" | ||
|
||
description: "Determines the composer cache directory and exports it as COMPOSER_CACHE_DIR environment variable" | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: "Determine composer cache directory" | ||
shell: "bash" | ||
run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-run-steps-action | ||
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs | ||
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-run-steps-actions | ||
|
||
name: "Install dependencies with composer" | ||
|
||
description: "Installs dependencies with composer" | ||
|
||
inputs: | ||
dependencies: | ||
description: "Which dependencies to install, one of \"lowest\", \"locked\", \"highest\"" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: "Install ${{ inputs.dependencies }} dependencies with composer" | ||
shell: "bash" | ||
run: "${{ github.action_path }}/run.sh" | ||
env: | ||
COMPOSER_INSTALL_DEPENDENCIES: "${{ inputs.dependencies }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
dependencies="${COMPOSER_INSTALL_DEPENDENCIES}" | ||
|
||
if [[ ${dependencies} == "lowest" ]]; then | ||
composer update --no-interaction --no-progress --no-suggest --prefer-lowest | ||
|
||
exit $? | ||
fi | ||
|
||
if [[ ${dependencies} == "locked" ]]; then | ||
composer install --no-interaction --no-progress --no-suggest | ||
|
||
exit $? | ||
fi | ||
|
||
if [[ ${dependencies} == "highest" ]]; then | ||
composer update --no-interaction --no-progress --no-suggest | ||
|
||
exit $? | ||
fi | ||
|
||
echo "::error::The value for the \"dependencies\" input needs to be one of \"lowest\", \"locked\"', \"highest\"' - got \"${dependencies}\" instead." | ||
|
||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.