Skip to content

Commit

Permalink
simpler phpunit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
notrab committed Sep 5, 2024
1 parent cd5eeda commit 0a32751
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 24 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,7 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.3"

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run tests
run: vendor/bin/phpunit
- uses: php-actions/composer@v6
- run: vendor/bin/phpunit
11 changes: 11 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true">
<testsuites>
<testsuite name="Dumbo Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit 0a32751

Please sign in to comment.