From 97cd5ed537857aeed2966e1ae928bfd856204eaa Mon Sep 17 00:00:00 2001 From: Joao Patricio Date: Mon, 20 Mar 2023 21:24:53 +0000 Subject: [PATCH] Converts unit test to Pest. Outlines GH Action --- .github/workflows/docker-image.yml | 7 +++++-- tests/Unit/ExampleTest.php | 17 +++-------------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e30fbdbda..77a715a14 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -22,5 +22,8 @@ jobs: composer install --ignore-platform-reqs TAG=$(date +%s) ./vendor/bin/sail build TAG=$(date +%s) ./vendor/bin/sail up -d - sleep 5 - ./vendor/bin/sail artisan test + sleep 1 + ./vendor/bin/sail ps + # Now to create .env + # Await database is created + # pest diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php index 5773b0ceb..44a4f337a 100644 --- a/tests/Unit/ExampleTest.php +++ b/tests/Unit/ExampleTest.php @@ -1,16 +1,5 @@ assertTrue(true); - } -} +test('that true is true', function () { + expect(true)->toBeTrue(); +});