From 732487d25e95e957bad3a5f1418e25ca562752e6 Mon Sep 17 00:00:00 2001 From: "hubert.lenoir" Date: Thu, 6 Jun 2024 09:59:19 +0200 Subject: [PATCH] split tests --- .github/workflows/static.yaml | 48 +++++++++++++++++++++++ .github/workflows/{ci.yaml => tests.yaml} | 40 +------------------ README.md | 7 ++++ 3 files changed, 56 insertions(+), 39 deletions(-) create mode 100644 .github/workflows/static.yaml rename .github/workflows/{ci.yaml => tests.yaml} (56%) diff --git a/.github/workflows/static.yaml b/.github/workflows/static.yaml new file mode 100644 index 0000000..8f4a889 --- /dev/null +++ b/.github/workflows/static.yaml @@ -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' diff --git a/.github/workflows/ci.yaml b/.github/workflows/tests.yaml similarity index 56% rename from .github/workflows/ci.yaml rename to .github/workflows/tests.yaml index 51ab187..cbb542e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/tests.yaml @@ -1,4 +1,4 @@ -name: 'CI' +name: 'Tests' on: push: @@ -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' diff --git a/README.md b/README.md index a0011fc..853143d 100644 --- a/README.md +++ b/README.md @@ -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