name: tests on: [push, pull_request] jobs: ci: name: Test on PHP ${{ matrix.php-version }} runs-on: "${{ matrix.os }}" strategy: matrix: os: [ubuntu-latest] php-version: ['8.0', '8.1'] max-parallel: 4 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 Analyse run: | composer analyse src - name: Setup Service run: | docker -d run -p 80:80 kennethreitz/httpbin curl http://localhost - name: Run Test Cases run: | vendor/bin/php-cs-fixer fix src --dry-run composer test