Converts unit test to Pest. Outlines GH Action

This commit is contained in:
Joao Patricio 2023-03-20 21:24:53 +00:00
parent d7c7494007
commit 97cd5ed537
2 changed files with 8 additions and 16 deletions

View File

@ -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

View File

@ -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();
});