perf: fast index I/O (6x read, 5x write) and optimized gitignore matc… #34
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: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| qa: | |
| name: QA Pipeline | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: ['8.4'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: hash, zlib, json, mbstring, ctype | |
| coverage: xdebug | |
| - name: Validate composer.json | |
| run: composer validate --strict | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: ECS (coding standard) | |
| run: composer ecs:check | |
| - name: PHPStan | |
| run: composer stan | |
| - name: Rector dry-run | |
| run: composer rector:check | |
| - name: PHPUnit | |
| run: composer test:coverage | |
| - name: Upload coverage | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: coverage/ | |
| acceptance: | |
| name: Acceptance Tests | |
| runs-on: ubuntu-latest | |
| needs: qa | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build and start containers | |
| run: docker compose up -d --build --wait | |
| - name: Run acceptance tests | |
| run: docker compose exec -T puregit vendor/bin/phpunit --testsuite Acceptance --testdox | |
| - name: Stop containers | |
| if: always() | |
| run: docker compose down -v |