37 lines
762 B
YAML
37 lines
762 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php: [ '8.2', '8.3', '8.4' ]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
extensions: pdo, pdo_sqlite, pdo_mysql, pdo_pgsql, pdo_sqlsrv
|
|
coverage: none
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
composer install --no-interaction --prefer-dist
|
|
|
|
- name: Initialize Pairity
|
|
run: |
|
|
bin/pairity init
|
|
|
|
- name: Run tests
|
|
run: |
|
|
vendor/bin/phpunit --colors=always
|