mirror of
https://github.com/ivuorinen/.github.git
synced 2026-01-26 11:23:57 +00:00
Create composer-install.yml
This commit is contained in:
29
workflows/composer-install.yml
Normal file
29
workflows/composer-install.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Run Composer Install
|
||||
|
||||
jobs:
|
||||
ComposerInstall:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
operating-system: ['ubuntu-latest']
|
||||
php-versions: ['8.0', '8.1']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Cache Composer packages
|
||||
id: composer-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: vendor
|
||||
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-php-${{ matrix.php-versions }}-
|
||||
${{ runner.os }}-php-
|
||||
|
||||
- name: Composer (PHP ${{ matrix.php-versions }})
|
||||
uses: php-actions/composer@v6
|
||||
with:
|
||||
php_version: ${{ matrix.php-versions }}
|
||||
args: --no-progress --prefer-dist --optimize-autoloader
|
||||
Reference in New Issue
Block a user