From ae001915c49e1793690b1b010fbe44bc9bf408e2 Mon Sep 17 00:00:00 2001 From: lukeraymonddowning Date: Mon, 12 Aug 2024 15:37:01 +0100 Subject: [PATCH 1/4] wip --- .github/workflows/tests.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..ebf86a1 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,29 @@ +name: Tests + +on: + pull_request + +jobs: + run-tests: + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4.1.7 + + - name: Setup PHP and Composer + uses: shivammathur/setup-php@v2 + with: + php-version: '8.3' + tools: composer:v2 + + - name: Install Dependencies + run: composer install -q --no-interaction + + - name: Prep Application + run: | + cp .env.example .env + php artisan key:generate + + - name: Run Tests + run: php artisan test --compact From 013415129e6ef58d028e9e0eb1c113ecf77808bd Mon Sep 17 00:00:00 2001 From: lukeraymonddowning Date: Mon, 12 Aug 2024 15:48:49 +0100 Subject: [PATCH 2/4] wip --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ebf86a1..bf17a3a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,4 +26,7 @@ jobs: php artisan key:generate - name: Run Tests + env: + DB_CONNECTION: sqlite + DB_DATABASE: ":memory:" run: php artisan test --compact From 7ab875a787f2307fc5985176b87bdfe70d328696 Mon Sep 17 00:00:00 2001 From: lukeraymonddowning Date: Mon, 12 Aug 2024 15:56:40 +0100 Subject: [PATCH 3/4] wip --- tests/TestCase.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index fe1ffc2..388f6b5 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -6,5 +6,10 @@ abstract class TestCase extends BaseTestCase { - // + protected function setUp(): void + { + parent::setUp(); + + $this->withoutVite(); + } } From fc8c27ed89538368bbe0d1817c8a5304b87daa89 Mon Sep 17 00:00:00 2001 From: lukeraymonddowning Date: Mon, 12 Aug 2024 16:05:19 +0100 Subject: [PATCH 4/4] wip --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bf17a3a..fd2ac59 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,6 +15,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '8.3' + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, igbinary, msgpack, lzf, zstd, lz4, memcached, gmp, :php-psr tools: composer:v2 - name: Install Dependencies