Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Converts unit test to Pest. Outlines GH Action

Joao Patricio97cd5ed53785
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
index e30fbdbda0..77a715a14e 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 5773b0ceb7..44a4f337af 100644
--- a/tests/Unit/ExampleTest.php
+++ b/tests/Unit/ExampleTest.php
@@ -1,16 +1,5 @@
<?php
-namespace Tests\Unit;
-
-use PHPUnit\Framework\TestCase;
-
-class ExampleTest extends TestCase
-{
- /**
- * A basic test example.
- */
- public function test_that_true_is_true(): void
- {
- $this->assertTrue(true);
- }
-}
+test('that true is true', function () {
+ expect(true)->toBeTrue();
+});