From 01dfa7e0e0cc217e07d8c19b1c650f1fb9ae5064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20Papu=C4=8D=C3=ADk?= Date: Fri, 24 Sep 2021 20:07:26 +0200 Subject: [PATCH] Create tests.yml --- .github/workflows/tests.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..73fdcc9 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,34 @@ +name: Tests + +on: [push, pull_request] + +env: + php-extensions: iconv, json, mbstring, xml, gd, intl, tokenizer, mysqli + php-tools: "composer:v2" + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + matrix: + php: ['8.0'] + + fail-fast: false + + name: PHP ${{ matrix.php }} tests + + steps: + - uses: actions/checkout@v2 + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: ${{ env.php-extensions }} + tools: ${{ env.php-tools }} + coverage: none + + - run: composer install --no-progress --prefer-dist + - run: vendor/bin/tester -p phpdbg tests -s -C --coverage ./coverage.xml --coverage-src ./src + - run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar + - env: + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: php php-coveralls.phar --verbose --config tests/.coveralls.yml