Skip to content

Commit

Permalink
Retest in folder up
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Nov 5, 2024
1 parent 72c1c50 commit 606d1a8
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: 'Coding Standards'
run: composer check-cs
- name: 'Pest tests'
run: vendor/bin/pest
run: composer test
name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
services:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"check-cs": "ecs check --ansi",
"fix-cs": "ecs check --ansi --fix",
"phpstan": "phpstan --memory-limit=1G",
"test": "pest"
"test": "vendor/bin/pest"
},
"config": {
"allow-plugins": {
Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/|version|/phpunit.xsd"
bootstrap="tests/pest/bootstrap.php"
bootstrap="tests/bootstrap.php"
colors="true"
>
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">tests/pest</directory>
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
</phpunit>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

define('PROJECT_VENDOR_DIR', getenv('PROJECT_VENDOR_DIR') ?: dirname(__DIR__) . '/vendor');

require realpath(PROJECT_VENDOR_DIR . '/autoload.php');
8 changes: 0 additions & 8 deletions tests/pest/bootstrap.php

This file was deleted.

0 comments on commit 606d1a8

Please sign in to comment.