Se añadieron las insignias al index.rst principal. Se añadió un enlac… #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master # Ejecuta pruebas al hacer push en la rama 'master' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-version: ['7.3', '8.0'] # Puedes cambiar las versiones según necesites | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v3 | |
| - name: Setup PHP ${{ matrix.php-version }} | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} # Configura la versión de PHP desde la matriz | |
| extensions: curl, mbstring, intl, xdebug # Instala extensiones de PHP si es necesario | |
| toos: composer | |
| - name: Install Composer dependencies | |
| run: composer install --no-progress --no-suggest | |
| - name: Create temporary env file | |
| run: | | |
| echo "BHEXPRESS_API_TOKEN=${{ secrets.BHEXPRESS_API_TOKEN }}" >> tests/test.env | |
| echo "BHEXPRESS_EMISOR_RUT=${{ secrets.BHEXPRESS_EMISOR_RUT }}" >> tests/test.env | |
| - name: Run PHP tests read only | |
| run: | | |
| composer tests_readonly | |
| - name: Upload PHPUnit result report | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: tests-testdox-php_${{ matrix.php-version }}.txt | |
| path: var/tests-testdox.txt | |
| - name: Display PHP version | |
| run: php -v |