Skip to content

⬆️ Bump actions/checkout from 3 to 4 #58

⬆️ Bump actions/checkout from 3 to 4

⬆️ Bump actions/checkout from 3 to 4 #58

Workflow file for this run

name: CI
on: ['push', 'pull_request']
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.4, "8.0", 8.1, 8.2]
name: Tests PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v4
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: cache-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring
coverage: none
- name: Install Composer dependencies
run: composer update --no-interaction --prefer-dist
- name: Unit Tests
run: ./vendor/bin/pest
formatting:
runs-on: ubuntu-latest
strategy:
fail-fast: true
name: Formatting Check
steps:
- uses: actions/checkout@v4
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: cache-php-7.4-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
extensions: mbstring
coverage: pcov
- name: Install Composer dependencies
run: composer update --no-interaction --prefer-dist
- name: PhpStan Checks
run: ./vendor/bin/phpstan analyse --ansi
- name: Rector Checks
run: ./vendor/bin/rector --dry-run