From 26705621aad4d977859e7e54f7f0e48adf779c57 Mon Sep 17 00:00:00 2001 From: benkhalife Date: Thu, 27 Aug 2026 07:47:53 -0300 Subject: [PATCH] ci: run the test suite on pull requests and pushes to master Installs dependencies and runs "composer test" (phpunit) on PHP 8.1, the package's declared minimum version. Runs on PRs targeting master so a broken test suite is caught before merge, and on pushes to master as a final confirmation on the mainline. --- .github/workflows/tests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..2669fd6 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,27 @@ +name: Tests + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + coverage: none + + - name: Install dependencies + run: composer install --no-interaction --prefer-dist + + - name: Run tests + run: composer test