Repository navigation
feat(customers): add rider routes with owner checks #2382
Workflow file for this run
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: [ main ] | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| branches: [ main, 'release/v*', 'dev-v*' ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.2' | |
| extensions: mbstring, xml, gd, zip, pdo_mysql, sockets, intl, bcmath, gmp | |
| coverage: xdebug | |
| - name: Update and Install additional packages | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libzip-dev libgd-dev libfreetype6-dev libjpeg-dev libpng-dev imagemagick libmagickwand-dev libmemcached-dev libgeos-dev libgmp-dev default-mysql-client libicu-dev | |
| - name: Configure Composer Auth for Github | |
| run: composer config --global github-oauth.github.com ${{ secrets._GITHUB_AUTH_TOKEN }} | |
| # CVE-2026-48019 in illuminate/mail has no patch for Laravel 10, and Composer refuses to install | |
| # it. CI only: remove this when the Laravel 12 upgrade lands. | |
| - name: Allow the unpatched illuminate/mail advisory | |
| run: composer config --global --json policy.advisories.ignore-id '["PKSA-zwc5-qtrz-zm1n"]' | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Run Lint | |
| run: composer lint | |
| - name: Run Tests | |
| run: composer test:unit | |
| - name: Generate Coverage Baseline | |
| run: XDEBUG_MODE=coverage composer coverage:baseline | |
| # Asserts the gate against the report the step above just wrote. | |
| # `composer coverage:check` would regenerate it first, which means running | |
| # the whole suite under coverage a second time. | |
| - name: Enforce Coverage Gate | |
| run: php scripts/coverage-summary.php coverage/clover.xml --fail-under=100 | |
| - name: Upload Coverage Baseline | |
| if: ${{ always() && hashFiles('coverage/clover.xml') != '' }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fleetops-coverage-clover | |
| path: coverage/clover.xml | |
| if-no-files-found: error | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: coverage/clover.xml | |
| disable_search: true | |
| flags: backend | |
| fail_ci_if_error: false |