Skip to content

Full checks

Full checks #1639

Workflow file for this run

name: "Full checks"
on:
schedule:
- cron: '0 10 * * *'
pull_request:
push:
branches:
- master
jobs:
full-checks:
name: "PHP version ${{ matrix.php-version }}, deps. ${{ matrix.dependencies }}"
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
dependencies:
- "lowest"
- "locked"
- "highest"
php-version:
- "8.0"
- "8.1"
- "8.2"
- "8.3"
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 lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress"
- 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-${{ matrix.php-version }}"