1name: Build 2on: 3 push: 4 branches: 5 - master 6 pull_request: 7 branches: 8 - master 9jobs: 10 build: 11 name: PHP ${{ matrix.php-versions }} 12 strategy: 13 fail-fast: false 14 matrix: 15 operating-system: [ubuntu-latest] 16 php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] 17 runs-on: ${{ matrix.operating-system }} 18 steps: 19 - name: Checkout 20 uses: actions/checkout@v1 21 - name: Setup PHP 22 uses: shivammathur/setup-php@v2 23 with: 24 php-version: ${{ matrix.php-versions }} 25 - name: Install Dependencies 26 run: | 27 composer update --no-progress --no-suggest --prefer-stable --optimize-autoloader 28 - name: Test 29 run: | 30 if [ 1 -eq "$(echo "${{ matrix.php-versions }} < 8.1" | bc)" ]; then 31 vendor/bin/phpunit --configuration phpunit.7.5.xml 32 else 33 vendor/bin/phpunit 34 fi 35