Embedded Entity Translation Improvements #20
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: PHP CI | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-version: [8.4] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Setup PHP | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| coverage: xdebug | |
| extensions: mbstring, json, pdo, pdo_sqlite, sqlite3, xdebug | |
| # Validate composer.json and composer.lock | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate --strict | |
| # Cache Composer dependencies | |
| - name: Cache Composer packages | |
| id: composer-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-php- | |
| # Install dependencies | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress --no-interaction | |
| # Check coding standards | |
| # - name: Check coding standards (PHPCS) | |
| # run: composer run-script cs-check | |
| # Run PHPUnit with coverage | |
| - name: Run PHPUnit tests with coverage | |
| run: composer run-script test | |
| # Upload coverage to Codecov | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | |
| with: | |
| files: var/clover.xml | |
| fail_ci_if_error: true |