Skip to content

Commit

Permalink
Merge pull request #15 from msmakouz/update-ci
Browse files Browse the repository at this point in the history
Updating CI, readme, adding psalm
  • Loading branch information
butschster committed Sep 14, 2022
2 parents 0be5b23 + c1ab94a commit 29e8b7c
Show file tree
Hide file tree
Showing 9 changed files with 91 additions and 80 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/main.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Spiral Scout
Copyright (c) 2022 Spiral Scout

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# Data Grid specification builder
[![Latest Stable Version](https://poser.pugx.org/spiral/data-grid-bridge/version)](https://packagist.org/packages/spiral/data-grid-bridge)
[![Build Status](https://github.com/spiral/data-grid-bridge/workflows/build/badge.svg)](https://github.com/spiral/data-grid-bridge/actions)
[![Codecov](https://codecov.io/gh/spiral/data-grid-bridge/branch/master/graph/badge.svg)](https://codecov.io/gh/spiral/data-grid-bridge/)

License:
--------
MIT License (MIT). Please see [`LICENSE`](LICENSE) for more information. Maintained by [Spiral Scout](https://spiralscout.com).
[![PHP Version Require](https://poser.pugx.org/spiral/data-grid-bridge/require/php)](https://packagist.org/packages/spiral/data-grid-bridge)
[![Latest Stable Version](https://poser.pugx.org/spiral/data-grid-bridge/v/stable)](https://packagist.org/packages/spiral/data-grid-bridge)
[![phpunit](https://github.com/spiral/data-grid-bridge/actions/workflows/phpunit.yml/badge.svg)](https://github.com/spiral/data-grid-bridge/actions)
[![psalm](https://github.com/spiral/data-grid-bridge/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/spiral/data-grid-bridge/actions)
[![Codecov](https://codecov.io/gh/spiral/data-grid-bridge/branch/master/graph/badge.svg)](https://codecov.io/gh/spiral/data-grid-bridge)
[![Total Downloads](https://poser.pugx.org/spiral/data-grid-bridge/downloads)](https://packagist.org/packages/spiral/data-grid-bridge)
[![type-coverage](https://shepherd.dev/github/spiral/data-grid-bridge/coverage.svg)](https://shepherd.dev/github/spiral/data-grid-bridge)
[![psalm-level](https://shepherd.dev/github/spiral/data-grid-bridge/level.svg)](https://shepherd.dev/github/spiral/data-grid-bridge)

<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).
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
"spiral/http": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"spiral/hmvc": "^3.0"
"phpunit/phpunit": "^9.5.20",
"spiral/hmvc": "^3.0",
"vimeo/psalm": "^4.27"
},
"autoload": {
"psr-4": {
Expand Down
34 changes: 18 additions & 16 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -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>
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<psalm
errorLevel="4"
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 29e8b7c

Please sign in to comment.