name: PHP Composer on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: runs-on: ubuntu-latest strategy: matrix: php-versions: ['7.2', '7.3', '7.4', '8.0'] name: PHP ${{ matrix.php-versions }} Test steps: - uses: actions/checkout@v2 - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' run: composer install --prefer-dist --no-progress --no-suggest - name: Run test suite run: vendor/bin/phpunit