|
16 | 16 | strategy: |
17 | 17 | fail-fast: false |
18 | 18 | matrix: |
19 | | - php-version: ['8.0', '8.1', '8.2', '8.3', '8.4'] |
| 19 | + php-version: ['8.1', '8.2', '8.3', '8.4'] |
20 | 20 | database: ['mysql', 'postgresql'] |
21 | 21 |
|
22 | 22 | env: |
@@ -59,19 +59,19 @@ jobs: |
59 | 59 | coverage: none |
60 | 60 |
|
61 | 61 | - name: Clonar FacturaScripts |
62 | | - uses: actions/checkout@v4 |
| 62 | + uses: actions/checkout@v5 |
63 | 63 | with: |
64 | 64 | fetch-depth: 0 |
65 | 65 | repository: 'NeoRazorX/facturascripts' |
66 | 66 |
|
67 | 67 | - name: Clonar Plugin ${{ env.NOMBRE_PLUGIN }} |
68 | | - uses: actions/checkout@v4 |
| 68 | + uses: actions/checkout@v5 |
69 | 69 | with: |
70 | 70 | fetch-depth: 0 |
71 | 71 | path: Plugins/${{ env.NOMBRE_PLUGIN }} |
72 | 72 |
|
73 | 73 | - name: Cache de dependencias de Composer |
74 | | - uses: actions/cache@v3 |
| 74 | + uses: actions/cache@v5 |
75 | 75 | with: |
76 | 76 | path: ~/.composer/cache/files |
77 | 77 | key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }} |
@@ -129,6 +129,15 @@ jobs: |
129 | 129 | exit 1 |
130 | 130 | fi |
131 | 131 |
|
| 132 | + - name: Instalar dependencias del Plugin ${{ env.NOMBRE_PLUGIN }} |
| 133 | + run: | |
| 134 | + if [ -f "Plugins/${{ env.NOMBRE_PLUGIN }}/composer.json" ]; then |
| 135 | + cd Plugins/${{ env.NOMBRE_PLUGIN }} |
| 136 | + composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader |
| 137 | + else |
| 138 | + echo "El plugin no tiene dependencias de Composer" |
| 139 | + fi |
| 140 | +
|
132 | 141 | - name: Instalar el Plugin ${{ env.NOMBRE_PLUGIN }} |
133 | 142 | run: php Test/install-plugins.php |
134 | 143 |
|
|
0 commit comments