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 }} runs-on: "${{ matrix.os }}" strategy: matrix: os: [ubuntu-latest] php: ['8.0', '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 }} extensions: redis, pdo, pdo_mysql, bcmath, swoole tools: phpize coverage: none - name: Setup Packages run: composer update -o - name: Run Cs Fixer run: vendor/bin/php-cs-fixer fix src --dry-run # if: matrix.php != '8.2' # - name: Run Cs Fixer (IGNORE_ENV) # run: PHP_CS_FIXER_IGNORE_ENV=true php vendor/bin/php-cs-fixer fix src --dry-run # if: matrix.php == '8.2' - name: Run Analyse run: composer analyse src - name: Run Test Cases run: composer test