Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.0', '8.1', '8.2', '8.3', '8.4']
php-version: ['8.1', '8.2', '8.3', '8.4']
database: ['mysql', 'postgresql']

env:
Expand Down Expand Up @@ -59,19 +59,19 @@ jobs:
coverage: none

- name: Clonar FacturaScripts
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
repository: 'NeoRazorX/facturascripts'

- name: Clonar Plugin ${{ env.NOMBRE_PLUGIN }}
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
path: Plugins/${{ env.NOMBRE_PLUGIN }}

- name: Cache de dependencias de Composer
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: ~/.composer/cache/files
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -129,6 +129,15 @@ jobs:
exit 1
fi

- name: Instalar dependencias del Plugin ${{ env.NOMBRE_PLUGIN }}
run: |
if [ -f "Plugins/${{ env.NOMBRE_PLUGIN }}/composer.json" ]; then
cd Plugins/${{ env.NOMBRE_PLUGIN }}
composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader
else
echo "El plugin no tiene dependencias de Composer"
fi

- name: Instalar el Plugin ${{ env.NOMBRE_PLUGIN }}
run: php Test/install-plugins.php

Expand Down