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
|
composer install --ignore-platform-reqs
|
||||||
TAG=$(date +%s) ./vendor/bin/sail build
|
TAG=$(date +%s) ./vendor/bin/sail build
|
||||||
TAG=$(date +%s) ./vendor/bin/sail up -d
|
TAG=$(date +%s) ./vendor/bin/sail up -d
|
||||||
sleep 5
|
sleep 1
|
||||||
./vendor/bin/sail artisan test
|
./vendor/bin/sail ps
|
||||||
|
# Now to create .env
|
||||||
|
# Await database is created
|
||||||
|
# pest
|
||||||
|
@ -1,16 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Tests\Unit;
|
test('that true is true', function () {
|
||||||
|
expect(true)->toBeTrue();
|
||||||
use PHPUnit\Framework\TestCase;
|
});
|
||||||
|
|
||||||
class ExampleTest extends TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* A basic test example.
|
|
||||||
*/
|
|
||||||
public function test_that_true_is_true(): void
|
|
||||||
{
|
|
||||||
$this->assertTrue(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user