From 83805dade359fa0b5e5801e163c438e68ce3d56b Mon Sep 17 00:00:00 2001 From: xemlock Date: Fri, 1 Jan 2021 18:39:01 +0100 Subject: [PATCH] Try running tests using GitHub actions --- .github/workflows/php-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/php-ci.yml diff --git a/.github/workflows/php-ci.yml b/.github/workflows/php-ci.yml new file mode 100644 index 0000000..0a541e2 --- /dev/null +++ b/.github/workflows/php-ci.yml @@ -0,0 +1,30 @@ +name: PHP CI + +on: [push, pull_request] + +jobs: + run: + runs-on: ${{ matrix.operating-system }} + + strategy: + matrix: + operating-system: ['ubuntu-16.04'] + php-versions: ['7.4', '7.3', '7.2', '7.1', '7.0', '5.6', '5.5', '5.4', '5.3'] + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + extensions: mbstring, intl, dom + ini-values: max_execution_time=180 + coverage: xdebug + + - run: composer install + - run: mkdir -p build/logs + - run: composer test -- --coverage-clover build/logs/clover.xml + + - run: if [ -f "vendor/bin/php-coveralls" ]; then php vendor/bin/php-coveralls -v; else vendor/bin/coveralls -v; fi