From 05b0e83ee4390ed3f14c8ea2194231275aad10b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20OUDOT?= Date: Fri, 15 Sep 2023 15:12:54 +0200 Subject: [PATCH] Launch phpunit in CI --- .github/workflows/ci.yml | 18 ++++++++++++++++++ tests/phpunit.xml | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 tests/phpunit.xml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a57c4df --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI + +on: [push] + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: php-actions/composer@v6 + - name: PHPUnit Tests for php7.4 + uses: php-actions/phpunit@v3 + with: + configuration: tests/phpunit.xml + version: 5.7.25 + php_version: 7.4 + args: --coverage-text diff --git a/tests/phpunit.xml b/tests/phpunit.xml new file mode 100644 index 0000000..d6a1379 --- /dev/null +++ b/tests/phpunit.xml @@ -0,0 +1,9 @@ + + + + + . + + + +