From 328cc9112e24e1a0b783058f5d12cd27ca8e022c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Moroz?= Date: Sat, 4 Oct 2025 22:07:04 +0200 Subject: [PATCH 1/2] ci: add GitHub Actions workflow for running tests on pull requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .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..9416103 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,27 @@ +name: Tests + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite + coverage: none + + - name: Install composer dependencies + run: composer install --prefer-dist --no-interaction --no-progress + + - name: Run tests + run: php artisan test From 1f7b19c062933462d4f2ca1637880df58be62d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Moroz?= Date: Sat, 4 Oct 2025 22:08:55 +0200 Subject: [PATCH 2/2] fix: add --without-tty flag to artisan test command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevents TTY mode warning in CI environment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9416103..dd373db 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,4 +24,4 @@ jobs: run: composer install --prefer-dist --no-interaction --no-progress - name: Run tests - run: php artisan test + run: php artisan test --without-tty