From 9d5f87d86f32079eb6eca674519ba3c364080a60 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Thu, 20 Feb 2025 10:43:23 +0200 Subject: [PATCH] Adds github test action --- .github/workflows/tests.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..adeea82 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,30 @@ +name: PHP Tests + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + extensions: pdo, pdo_sqlite + + - name: Install dependencies + run: | + cd tests + composer install + + - name: Run test suite + run: | + cd tests + ./vendor/bin/phpunit