Update Node.js to 18.20 #8083
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
| # This file is part of the Stooa codebase. | |
| # | |
| # (c) 2020 - present Runroom SL | |
| # | |
| # For the full copyright and license information, please view the LICENSE | |
| # file that was distributed with this source code. | |
| # This workflow runs all the PHPUnit tests. | |
| name: Backend tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| backend-tests: | |
| name: PHP ${{ matrix.php }} | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: backend | |
| strategy: | |
| matrix: | |
| php: ['8.1'] | |
| steps: | |
| - name: Checkout the repository to Github workspace | |
| uses: actions/checkout@v3 | |
| - name: Setup the PHP environment | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: pcov | |
| tools: composer | |
| ini-values: date.timezone=Europe/Madrid | |
| - name: Add PHPUnit matcher | |
| run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
| - name: Installs Composer | |
| uses: ramsey/composer-install@v2 | |
| with: | |
| working-directory: backend | |
| - name: Execute PHPUnit | |
| run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml | |
| - name: Send coverage to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| file: build/logs/clover.xml |