Full checks #1032
This file contains 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: "Full checks" | |
on: | |
schedule: | |
- cron: '0 10 * * *' | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
full-checks: | |
name: "Full CI checks for all supported PHP versions" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
fail-fast: false | |
matrix: | |
dependencies: | |
- "locked" | |
- "highest" | |
php-version: | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
- "8.3" | |
- "8.4" | |
operating-system: | |
- "ubuntu-22.04" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v2" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: Xdebug | |
php-version: "${{ matrix.php-version }}" | |
tools: composer | |
- name: Get composer cache directory | |
id: composercache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.composercache.outputs.dir }} | |
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}" | |
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}" | |
- name: "Install locked dependencies" | |
if: ${{ matrix.dependencies == 'locked' }} | |
run: "composer install --no-interaction --no-progress" | |
- name: "Install highest dependencies" | |
if: ${{ matrix.dependencies == 'highest' }} | |
run: "composer update --no-interaction --no-progress" | |
- name: "Full CI" | |
run: "composer ci" |