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 21, 2024
1 parent bc302f4 commit 732487d
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 39 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
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# 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)

## What is it ?

This bundle allows you to generate, stream and save PDF locally from URL, HTML, Markdown or any
Expand Down

0 comments on commit 732487d

Please sign in to comment.