From 8c3caba9b0dffaf6924c3d5d641cb52b4829539d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Mar 2026 03:54:47 +0000 Subject: [PATCH] Add GitHub Actions workflow for running tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Matrix: PHP 8.3/8.4 × Laravel 12/13 on Ubuntu. https://claude.ai/code/session_019xp2A6dBYgbheEkVgYwnQs --- .github/workflows/tests.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..9a40be3 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,38 @@ +name: Tests + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + tests: + runs-on: ubuntu-latest + + strategy: + fail-fast: true + matrix: + php: [8.3, 8.4] + laravel: [12, 13] + + name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite + coverage: none + + - name: Install dependencies + run: | + composer require "illuminate/database:^${{ matrix.laravel }}.0" "illuminate/support:^${{ matrix.laravel }}.0" --no-interaction --no-update + composer update --prefer-dist --no-interaction --no-progress + + - name: Run tests + run: vendor/bin/pest