CI #1172
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: | |
| types: [ opened, synchronize ] | |
| branches: [ main ] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '55 17 * * *' | |
| jobs: | |
| quality: | |
| uses: prinsfrank/CI-PHP/.github/workflows/quality.yml@main | |
| with: | |
| PHP_VERSION: '8.3' | |
| PHP_VERSIONS: '["8.2", "8.3", "8.4", "8.5"]' | |
| secrets: inherit | |
| feature: | |
| name: PHP Tests - Feature | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-version: ["8.2", "8.3", "8.4", "8.5"] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| coverage: none | |
| - name: Install dependencies | |
| uses: ramsey/composer-install@v3 | |
| - name: Run Feature tests | |
| run: composer run feature | |
| samples: | |
| name: PHP Tests - Samples | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.5' | |
| coverage: none | |
| - name: Install dependencies | |
| uses: ramsey/composer-install@v3 | |
| - name: Run Samples tests | |
| run: vendor/bin/phpunit tests/Samples/ |