Skip to content

Commit

Permalink
Merge pull request #39 from msmakouz/update-ci
Browse files Browse the repository at this point in the history
Adding CI, updating readme
  • Loading branch information
butschster committed Sep 14, 2022
2 parents c95e38f + 5561fc8 commit dde45ce
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 37 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/phpunit.yml
@@ -0,0 +1,18 @@
on:
pull_request:
push:
branches:
- master

name: phpunit

jobs:
phpunit:
uses: spiral/gh-actions/.github/workflows/phpunit.yml@master
with:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2']
stability: >-
['prefer-lowest', 'prefer-stable']
16 changes: 16 additions & 0 deletions .github/workflows/static-analysis.yml
@@ -0,0 +1,16 @@
on:
pull_request:
push:
branches:
- master

name: static analysis

jobs:
psalm:
uses: spiral/gh-actions/.github/workflows/psalm.yml@master
with:
os: >-
['ubuntu-latest']
php: >-
['8.1']
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

18 changes: 15 additions & 3 deletions README.md
@@ -1,4 +1,16 @@
# Data Grid specification builder
[![Latest Stable Version](https://poser.pugx.org/spiral/data-grid/version)](https://packagist.org/packages/spiral/data-grid)
[![Build Status](https://github.com/spiral/data-grid/workflows/build/badge.svg)](https://github.com/spiral/data-grid/actions)
[![Codecov](https://codecov.io/gh/spiral/data-grid/branch/master/graph/badge.svg)](https://codecov.io/gh/spiral/data-grid/)

[![PHP Version Require](https://poser.pugx.org/spiral/data-grid/require/php)](https://packagist.org/packages/spiral/data-grid)
[![Latest Stable Version](https://poser.pugx.org/spiral/data-grid/v/stable)](https://packagist.org/packages/spiral/data-grid)
[![phpunit](https://github.com/spiral/data-grid/actions/workflows/phpunit.yml/badge.svg)](https://github.com/spiral/data-grid/actions)
[![psalm](https://github.com/spiral/data-grid/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/spiral/data-grid/actions)
[![Codecov](https://codecov.io/gh/spiral/data-grid/branch/master/graph/badge.svg)](https://codecov.io/gh/spiral/data-grid)
[![Total Downloads](https://poser.pugx.org/spiral/data-grid/downloads)](https://packagist.org/packages/spiral/data-grid)
[![type-coverage](https://shepherd.dev/github/spiral/data-grid/coverage.svg)](https://shepherd.dev/github/spiral/data-grid)
[![psalm-level](https://shepherd.dev/github/spiral/data-grid/level.svg)](https://shepherd.dev/github/spiral/data-grid)

<b>[Documentation](https://spiral.dev/docs/component-data-grid)</b> | [Framework Bundle](https://github.com/spiral/framework)

## License:

MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information. Maintained by [Spiral Scout](https://spiralscout.com).
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -24,7 +24,8 @@
},
"require-dev": {
"phpunit/phpunit": "^9.5.20",
"ramsey/uuid": "^4.2.3"
"ramsey/uuid": "^4.2.3",
"vimeo/psalm": "^4.27"
},
"autoload": {
"files": [
Expand Down
36 changes: 19 additions & 17 deletions phpunit.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
Expand All @@ -10,19 +11,20 @@
processIsolation="false"
stopOnFailure="false"
stopOnError="false"
stderr="true">
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>src</directory>
</whitelist>
</filter>
<php>
<ini name="error_reporting" value="-1"/>
<ini name="memory_limit" value="-1"/>
</php>
</phpunit>
stderr="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory>src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="-1"/>
<ini name="memory_limit" value="-1"/>
</php>
</phpunit>
21 changes: 21 additions & 0 deletions psalm.xml
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<psalm
errorLevel="5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<UndefinedAttributeClass>
<errorLevel type="suppress">
<referencedClass name="JetBrains\PhpStorm\ExpectedValues" />
</errorLevel>
</UndefinedAttributeClass>
</issueHandlers>
</psalm>

0 comments on commit dde45ce

Please sign in to comment.