Skip to content

Commit

Permalink
split tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Beru committed Jun 6, 2024
1 parent 6d3ee0a commit 534209e
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 47 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/static.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: 'Static analysis'

on:
push:
branches: ['main']
pull_request:
branches: ['main']

permissions:
contents: 'read'

jobs:

php-cs-fixer:
name: 'PHP CS Fixer'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'

- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '8.3'
coverage: 'none'

- name: 'Install dependencies'
uses: 'ramsey/composer-install@v3'

- name: 'Run PHP CS Fixer'
run: 'php vendor/bin/php-cs-fixer check -v'

phpstan:
name: 'PHPStan'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'

- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '8.3'
coverage: 'none'

- name: 'Install dependencies'
uses: 'ramsey/composer-install@v3'

- name: 'Run PHPStan'
run: 'php vendor/bin/phpstan'
40 changes: 1 addition & 39 deletions .github/workflows/ci.yaml → .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'CI'
name: 'Tests'

on:
push:
Expand All @@ -13,44 +13,6 @@ permissions:

jobs:

php-cs-fixer:
name: 'PHP CS Fixer'
runs-on: 'ubuntu-latest'
if: github.event_name != 'schedule'
steps:
- uses: 'actions/checkout@v4'

- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '8.3'
coverage: 'none'

- name: 'Install dependencies'
uses: 'ramsey/composer-install@v3'

- name: 'Run PHP CS Fixer'
run: 'php vendor/bin/php-cs-fixer check -v'

phpstan:
name: 'PHPStan'
runs-on: 'ubuntu-latest'
if: github.event_name != 'schedule'
steps:
- uses: 'actions/checkout@v4'

- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '8.3'
coverage: 'none'

- name: 'Install dependencies'
uses: 'ramsey/composer-install@v3'

- name: 'Run PHPStan'
run: 'php vendor/bin/phpstan'

test:
name: 'Build and Test - PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony-version }} ${{ matrix.deps }}'
runs-on: 'ubuntu-latest'
Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
Gotenberg Bundle
=============================
# Gotenberg Bundle

[![Latest Version](https://img.shields.io/github/release/sensiolabs/gotenberg-bundle.svg?style=flat-square)](https://github.com/sensiolabs/gotenberg-bundle/releases)
[![Total Downloads](https://poser.pugx.org/sensiolabs/gotenberg-bundle/downloads)](https://packagist.org/packages/sensiolabs/gotenberg-bundle)
[![Monthly Downloads](https://poser.pugx.org/sensiolabs/gotenberg-bundle/d/monthly.png)](https://packagist.org/packages/sensiolabs/gotenberg-bundle)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENCE)
[![Static analysis](https://github.com/sensiolabs/gotenberg-bundle/actions/workflows/static.yml/badge.svg?branch=main)](https://github.com/sensiolabs/gotenberg-bundle/actions/workflows/static.yaml?query=branch%3Amain)
[![Tests](https://github.com/sensiolabs/gotenberg-bundle/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/sensiolabs/gotenberg-bundle/actions/workflows/tests.yaml?query=branch%3Amain)

This bundle allows you to generate, stream and save PDF locally.

Documentation
-------------
## Documentation

The entry point of the documentation can be found in the file `docs/index.rst`

[Read the documentation](docs/index.rst)

Credits
-------
## Credits

This bundle was inspired by [Gotenberg PHP](https://github.com/gotenberg/gotenberg-php).
- [Steven RENAUX](https://github.com/StevenRenaux)
- [All Contributors](../../contributors)

Licence
-------
# Licence

MIT License (MIT): see the [License File](LICENSE) for more details.

0 comments on commit 534209e

Please sign in to comment.