Skip to content

Commit 2486c87

Browse files
authored
Merge pull request #74 from abdedarghal111/testNewActions
feat: test new actions
2 parents 608fa40 + 24b7bee commit 2486c87

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/tests.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
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']
2020
database: ['mysql', 'postgresql']
2121

2222
env:
@@ -59,19 +59,19 @@ jobs:
5959
coverage: none
6060

6161
- name: Clonar FacturaScripts
62-
uses: actions/checkout@v4
62+
uses: actions/checkout@v5
6363
with:
6464
fetch-depth: 0
6565
repository: 'NeoRazorX/facturascripts'
6666

6767
- name: Clonar Plugin ${{ env.NOMBRE_PLUGIN }}
68-
uses: actions/checkout@v4
68+
uses: actions/checkout@v5
6969
with:
7070
fetch-depth: 0
7171
path: Plugins/${{ env.NOMBRE_PLUGIN }}
7272

7373
- name: Cache de dependencias de Composer
74-
uses: actions/cache@v3
74+
uses: actions/cache@v5
7575
with:
7676
path: ~/.composer/cache/files
7777
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
@@ -129,6 +129,15 @@ jobs:
129129
exit 1
130130
fi
131131
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+
132141
- name: Instalar el Plugin ${{ env.NOMBRE_PLUGIN }}
133142
run: php Test/install-plugins.php
134143

0 commit comments

Comments
 (0)