-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
94 additions
and
44 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
.github/composite-actions/install-composer-deps/action.yml
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,21 @@ | ||
name: "Install composer deps" | ||
|
||
inputs: | ||
composer-flags: | ||
description: 'OS version' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install dependencies | ||
uses: nick-invision/retry@v2 | ||
with: | ||
timeout_minutes: 5 | ||
max_attempts: 5 | ||
retry_wait_seconds: 30 | ||
command: composer update --optimize-autoloader --no-interaction --no-progress --no-scripts ${{ matrix.composer-flags }} # --no-scripts to avoid installing dev-tools for all jobs on CI level | ||
|
||
- name: Report versions | ||
shell: bash | ||
run: composer info -D | ||
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,27 @@ | ||
name: "Setup Cache" | ||
|
||
inputs: | ||
os: | ||
description: 'OS version' | ||
required: true | ||
php: | ||
description: 'PHP version' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Get Composer cache directory | ||
id: composer-cache-dir | ||
shell: bash | ||
run: echo "dir=$(composer config cache-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composer-cache-dir.outputs.dir }} | ||
key: composer-${{ inputs.os }}-${{ inputs.php }}-${{ hashFiles('**/composer.*') }} | ||
restore-keys: | | ||
composer-${{ inputs.os }}-${{ inputs.php }}- | ||
composer-${{ inputs.os }}- | ||
composer- |
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 @@ | ||
name: "Setup PHP" | ||
|
||
inputs: | ||
version: | ||
description: 'PHP version' | ||
required: true | ||
coverage: | ||
description: 'coverage mode' | ||
required: false | ||
default: 'none' | ||
tools: | ||
description: 'tools' | ||
required: false | ||
default: 'none' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ inputs.version }} | ||
coverage: ${{ inputs.coverage }} | ||
tools: ${{ inputs.tools }} | ||
extensions: none, curl, dom, json, mbstring, opcache, simplexml, tokenizer, xml, xmlwriter, zip |
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