mirror of
https://github.com/ivuorinen/ivuorinen.git
synced 2026-03-19 03:03:07 +00:00
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
name: Run Composer Install
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
pull_request:
|
|
paths:
|
|
- 'composer.json'
|
|
- 'composer.lock'
|
|
|
|
jobs:
|
|
ComposerInstall:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: write
|
|
statuses: write
|
|
|
|
strategy:
|
|
matrix:
|
|
operating-system: ['ubuntu-latest']
|
|
php: ['8.0', '8.1', '8.2', '8.3', '8.4']
|
|
|
|
steps:
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
|
|
|
- name: Cache Composer packages
|
|
id: composer-cache
|
|
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
|
|
with:
|
|
path: vendor
|
|
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-php-${{ matrix.php }}-
|
|
${{ runner.os }}-php-
|
|
|
|
- name: Composer (PHP ${{ matrix.php }})
|
|
uses: php-actions/composer@8a65f0d3c6a1d17ca4800491a40b5756a4c164f3 # v6
|
|
with:
|
|
php_version: ${{ matrix.php }}
|
|
args: --no-progress --prefer-dist --optimize-autoloader
|