1name: CI 2 3on: 4 push: 5 pull_request: 6 7jobs: 8 tests: 9 name: Tests (PHP ${{ matrix.php }}) 10 runs-on: ubuntu-latest 11 strategy: 12 fail-fast: false 13 matrix: 14 php: 15 - 8.0 16 - 7.4 17 - 7.3 18 - 7.2 19 - 7.1 20 steps: 21 - uses: actions/checkout@v2 22 - uses: shivammathur/setup-php@v2 23 with: 24 php-version: ${{ matrix.php }} 25 - run: | 26 # install 'libuv' 27 mkdir libuv 28 curl -L https://github.com/libuv/libuv/archive/v1.6.1.tar.gz | tar xzf - 29 cd libuv-1.6.1 && ./autogen.sh && ./configure --prefix=$(readlink -f `pwd`/../libuv) && make && make install 30 cd .. 31 32 # install 'php-uv' 33 phpize && ./configure --with-uv=$(readlink -f `pwd`/libuv) 34 make 35 sudo make install 36 echo "extension = uv.so" >> $(php -r 'echo php_ini_loaded_file();') 37 - run: php run-tests.php -p `which php` --offline --show-diff --set-timeout 120 38