1name: Continuous Integration 2 3on: 4 - push 5 - pull_request 6 7jobs: 8 tests: 9 strategy: 10 matrix: 11 include: 12 - operating-system: 'ubuntu-latest' 13 php-version: '8.0' 14 job-description: 'on Ubuntu' 15 16 - operating-system: 'macos-latest' 17 php-version: '8.0' 18 job-description: 'on macOS' 19 20 name: PHP ${{ matrix.php-version }} ${{ matrix.job-description }} 21 22 runs-on: ${{ matrix.operating-system }} 23 24 steps: 25 - name: Set git to use LF 26 run: | 27 git config --global core.autocrlf false 28 git config --global core.eol lf 29 30 - name: Checkout code 31 uses: actions/checkout@v2 32 33 - name: Setup PHP 34 uses: shivammathur/setup-php@v2 35 with: 36 php-version: ${{ matrix.php-version }} 37 38 - name: Build 39 uses: nick-invision/retry@v2 40 with: 41 timeout_minutes: 5 42 max_attempts: 5 43 retry_wait_seconds: 30 44 command: | 45 phpize 46 ./configure 47 make 48 49 - name: Run tests 50 env: 51 NO_INTERACTION: 1 52 run: make test 53