Converts unit test to Pest. Outlines GH Action
This commit is contained in:
parent
d7c7494007
commit
97cd5ed537
7
.github/workflows/docker-image.yml
vendored
7
.github/workflows/docker-image.yml
vendored
@ -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
|
||||
|
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user