Skip to content

Prep codebase for 1.0.0 release #7

Prep codebase for 1.0.0 release

Prep codebase for 1.0.0 release #7

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
jobs:
phpunit:
name: PHPUnit (PHP ${{ matrix.php-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php-version: '8.0'
composer-options: '--no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --optimize-autoloader --ignore-platform-reqs'
- php-version: '8.1'
composer-options: '--no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --optimize-autoloader --ignore-platform-reqs'
- php-version: '8.2'
composer-options: '--no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --optimize-autoloader'
- php-version: '8.3'
composer-options: '--no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --optimize-autoloader'
- php-version: '8.4'
composer-options: '--no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --optimize-autoloader'
- php-version: '8.6'
composer-options: '--no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --optimize-autoloader'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v3
with:
composer-options: ${{ matrix.composer-options }}
custom-cache-key: $(composer config cache-files-dir)
custom-cache-suffix: ${{ matrix.php-version }}
- name: Run PHPUnit
run: ./vendor/bin/phpunit
lint:
name: Lint (Pint + PHPStan)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none
- name: Install dependencies
uses: ramsey/composer-install@v3
with:
composer-options: ${{ matrix.composer-options }}
custom-cache-key: $(composer config cache-files-dir)
custom-cache-suffix: ${{ matrix.php-version }}
- name: Run Pint
run: ./vendor/bin/pint --test
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse