Skip to content

Commit

Permalink
Merge pull request #74 from takielias/11.x
Browse files Browse the repository at this point in the history
11.x
  • Loading branch information
takielias authored Sep 15, 2024
2 parents 744d541 + 29e507a commit e16d102
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 8 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tablar Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests via PHPUnit
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: vendor/bin/phpunit
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ Please check the corresponding branch for the documentation.

## [Demo Project](https://github.com/takielias/tablar-demo-project)

### Live Demo
### Installation

```shell
composer require takielias/tablar
```

### Live Demo
https://tablar.ebuz.xyz

```shell
Expand Down
10 changes: 3 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
"laravel/ui": "~4"
},
"require-dev": {
"phpunit/phpunit": ">=9.1",
"orchestra/testbench": ">=9.0",
"scrutinizer/ocular": "^1.9"
"phpunit/phpunit": ">=10.0",
"orchestra/testbench": ">=9.0"
},
"autoload": {
"psr-4": {
Expand All @@ -33,10 +32,7 @@
"autoload-dev": {
"psr-4": {
"TakiElias\\Tablar\\Tests\\": "tests/"
},
"classmap": [
"tests/TestCase.php"
]
}
},
"extra": {
"branch-alias": {
Expand Down
17 changes: 17 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false"
colors="true" processIsolation="false" stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<testsuites>
<testsuite name="Package">
<directory suffix=".php">./tests/Menu</directory>
<exclude>tests/TestCase.php</exclude>
</testsuite>
</testsuites>
<source>
<include>
<directory>src/</directory>
</include>
</source>
</phpunit>

0 comments on commit e16d102

Please sign in to comment.