From bc1f881ad694aba5345cc96a1a55920626565eb5 Mon Sep 17 00:00:00 2001 From: Devansh Bawari Date: Thu, 26 Oct 2023 13:13:15 +0530 Subject: [PATCH] testing --- .github/workflows/{ci.yml => tests.yml} | 12 ++++++++---- public/index.php | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) rename .github/workflows/{ci.yml => tests.yml} (86%) diff --git a/.github/workflows/ci.yml b/.github/workflows/tests.yml similarity index 86% rename from .github/workflows/ci.yml rename to .github/workflows/tests.yml index 4da9c07bb88..1805eac4523 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: CI +name: Tests on: [push, pull_request] @@ -28,13 +28,15 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} extensions: curl, fileinfo, gd, intl, mbstring, openssl, pdo, pdo_mysql, tokenizer, zip + ini-values: error_reporting=E_ALL + tools: composer:v2 - name: Running Composer Install run: composer install @@ -52,7 +54,9 @@ jobs: run: php artisan bagisto:install - name: Running Code Style Test - run: vendor/bin/pint --test + uses: aglipanci/laravel-pint-action@0.1.0 + with: + testMode: true - - name: Running Test + - name: Running Pest Test run: vendor/bin/pest --colors=always diff --git a/public/index.php b/public/index.php index 9dd7374ebda..116e822a854 100644 --- a/public/index.php +++ b/public/index.php @@ -16,7 +16,7 @@ | */ -if (file_exists($maintenance = __DIR__ . '/../storage/framework/maintenance.php')) { +if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) { require $maintenance; }