From 412a03516bfb806dfb95fd273d1470f9fac6a4cc Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Tue, 29 Jun 2021 13:49:20 +0300 Subject: [PATCH] Github Actions: PHPUnit Added Github Actions runner for PHPUnit tests. It runs on every push and makes sure all contributions (be it from humans, or bots) pass our existing tests. --- .github/workflows/phpunit.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/phpunit.yml diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml new file mode 100644 index 0000000..5ca3d58 --- /dev/null +++ b/.github/workflows/phpunit.yml @@ -0,0 +1,20 @@ +name: PHPUnit + +on: [push] + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: php-actions/composer@v5 + + - name: PHPUnit Tests + uses: php-actions/phpunit@v2 + with: + php_extensions: xdebug mbstring + bootstrap: vendor/autoload.php + configuration: phpunit.xml + args: --coverage-text