Skip to content

tests

tests #209

Workflow file for this run

name: tests
on:
push:
pull_request:
schedule:
- cron: '0 2 * * *'
env:
PHP_CS_FIXER_IGNORE_ENV: 1
jobs:
ci:
name: Test on PHP ${{ matrix.php-version }}
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os: [ubuntu-latest]
php-version: ['8.1', '8.2']
max-parallel: 4
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: redis, pdo, pdo_mysql, bcmath, swoole
tools: phpize
coverage: none
- name: Setup Packages
run: composer update -o
- name: Run Cs Fixer
run: |
php vendor/bin/php-cs-fixer fix src --dry-run
- name: Run Analyse
run: composer analyse src
- name: Run Test Cases
run: composer test