Skip to content

Commit

Permalink
Establish maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Jan 27, 2021
1 parent 5154300 commit 11095f2
Show file tree
Hide file tree
Showing 37 changed files with 1,325 additions and 1,171 deletions.
16 changes: 11 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
.gitattributes export-ignore
.gitignore export-ignore
/.travis.yml export-ignore
/build export-ignore
/build.xml export-ignore
# Set the default behavior, in case people don't have core.autocrlf set.
* text eol=lf
/.gitattributes export-ignore
/.gitignore export-ignore
/.github export-ignore
/phpcs.xml.dist export-ignore
/phpstan.neon.dist export-ignore
/phpstan-baseline.neon export-ignore
/phpunit.xml.dist export-ignore
/psalm.xml.dist export-ignore
/psalm-baseline.xml export-ignore
/tests export-ignore
34 changes: 34 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Coding Standards"

on:
pull_request:
push:
branches:
- "master"

jobs:
coding-standards:
name: "Coding Standards"
runs-on: "ubuntu-20.04"

strategy:
matrix:
php-version:
- "7.3"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: "cs2pr"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"

- name: "Run PHP_CodeSniffer"
run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"
75 changes: 75 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: "CI"

on:
pull_request:
push:
branches:
- "master"
schedule:
- cron: "42 3 * * *"

jobs:
phpunit:
name: "PHPUnit"
runs-on: "ubuntu-20.04"

strategy:
matrix:
php-version:
- "7.3"
- "7.4"
- "8.0"
dependencies:
- "highest"
include:
- dependencies: "lowest"
php-version: "7.3"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"
with:
fetch-depth: 2

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
coverage: "pcov"
ini-values: "zend.assertions=1"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
dependency-versions: "${{ matrix.dependencies }}"

- name: "Run PHPUnit"
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"

- name: "Upload coverage file"
uses: "actions/upload-artifact@v2"
with:
name: "phpunit-${{ matrix.deps }}-${{ matrix.php-version }}.coverage"
path: "coverage.xml"

upload_coverage:
name: "Upload coverage to Codecov"
runs-on: "ubuntu-20.04"
needs:
- "phpunit"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"
with:
fetch-depth: 2

- name: "Download coverage files"
uses: "actions/download-artifact@v2"
with:
path: "reports"

- name: "Upload to Codecov"
uses: "codecov/codecov-action@v1"
with:
directory: reports
59 changes: 59 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: "Static Analysis"

on:
pull_request:
push:
branches:
- "master"

jobs:
static-analysis-phpstan:
name: "Static Analysis with PHPStan"
runs-on: "ubuntu-20.04"

strategy:
matrix:
php-version:
- "7.3"

steps:
- name: "Checkout code"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: "cs2pr"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"

- name: "Run a static analysis with phpstan/phpstan"
run: "vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr"

static-analysis-psalm:
name: "Static Analysis with Psalm"
runs-on: "ubuntu-20.04"

strategy:
matrix:
php-version:
- "7.3"

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Psalm
uses: docker://vimeo/psalm-github-actions:4.3.2
with:
args: --shepherd
composer_require_dev: true
security_analysis: true
report_file: results.sarif
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: results.sarif
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/bin
/.phpcs-cache
/.phpunit.result.cache
/composer.lock
/vendor
/phpcs.xml
/phpstan.neon
/psalm.xml
/phpunit.xml
/vendor/
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

File renamed without changes.
26 changes: 18 additions & 8 deletions readme.md → README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Tracy BlueScreen Bundle
======================
# Tracy BlueScreen Bundle

[![GitHub Actions][GA master image]][GA master]
[![Type Coverage][Shepherd Image]][Shepherd Link]
[![Code Coverage][Coverage image]][CodeCov Master]

**This bundle lets you use the [Tracy's debug screen](https://github.com/nette/tracy#visualization-of-errors-and-exceptions) in combination with the the default profiler in your Symfony application.**

Expand All @@ -12,7 +15,7 @@ Why is Tracy's debug screen better than the Symfony default exception screen:
* Fullscreen layout providing more space for information.
* Look at the interactive [example screen](http://nette.github.io/tracy/tracy-exception.html).

However the Symfony profiler provides a lot of useful information about the application when an error occurs, so it is better to have them both available:
However, the Symfony profiler provides a lot of useful information about the application when an error occurs, so it is better to have them both available:

![Nette Tracy with Symfony profiler screenshot](docs/tracy-with-profiler.png)

Expand Down Expand Up @@ -80,7 +83,7 @@ tracy_blue_screen:
# Add paths which should be collapsed (for external/compiled code) so that actual error is expanded.
collapse_paths:
# Defaults:
- '%kernel.root_dir%/bootstrap.php.cache'
- '%kernel.project%/bootstrap.php.cache'
- '%kernel.cache_dir%'
# plus paths set in BlueScreen instance used (/vendor)

Expand All @@ -96,23 +99,30 @@ services:
info:
- 'environment: %kernel.environment%'

vasek_purchart.tracy_blue_screen.tracy.blue_screen: '@my_blue_screen'
cdn77.tracy_blue_screen.tracy.blue_screen: '@my_blue_screen'
```
Installation
-----------
Install package [`vasek-purchart/tracy-blue-screen-bundle`](https://packagist.org/packages/vasek-purchart/tracy-blue-screen-bundle) with [Composer](https://getcomposer.org/):
Install package [`cdn77/tracy-blue-screen-bundle`](https://packagist.org/packages/cdn77/tracy-blue-screen-bundle) with [Composer](https://getcomposer.org/):

```bash
composer require vasek-purchart/tracy-blue-screen-bundle
composer require cdn77/tracy-blue-screen-bundle
```

Register the bundle in your application:
```php
// config/bundles.php
return [
// ...
VasekPurchart\TracyBlueScreenBundle\TracyBlueScreenBundle::class => ['all' => true],
Cdn77\TracyBlueScreenBundle\TracyBlueScreenBundle::class => ['all' => true],
];
```

[Coverage image]: https://codecov.io/gh/cdn77/Tracy-Blue-Screen-Bundle/branch/master/graph/badge.svg
[CodeCov Master]: https://codecov.io/gh/cdn77/Tracy-Blue-Screen-Bundle/branch/master
[GA master]: https://github.com/cdn77/Tracy-Blue-Screen-Bundle/actions?query=workflow%3A%22CI%22+branch%3Amaster
[GA master image]: https://github.com/cdn77/Tracy-Blue-Screen-Bundle/workflows/CI/badge.svg
[Shepherd Image]: https://shepherd.dev/github/cdn77/Tracy-Blue-Screen-Bundle/coverage.svg
[Shepherd Link]: https://shepherd.dev/github/cdn77/Tracy-Blue-Screen-Bundle
Loading

0 comments on commit 11095f2

Please sign in to comment.