Skip to content

Commit

Permalink
chore: update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Beru committed Aug 5, 2024
1 parent e0062ef commit 9c71016
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 93 deletions.
93 changes: 0 additions & 93 deletions .github/workflows/ci.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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: 'Install PHPUnit'
run: 'vendor/bin/simple-phpunit --version'

- name: 'Run PHPStan'
run: 'php vendor/bin/phpstan analyse --no-interaction --no-progress --ansi'
49 changes: 49 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 'Tests'

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

permissions:
contents: 'read'

jobs:

phpunit:
name: 'PHPUnit'
runs-on: 'ubuntu-latest'
strategy:
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
deps:
# - 'lowest'
- 'highest'
fail-fast: false
steps:
- name: 'Checkout'
uses: 'actions/checkout@v4'

- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '${{ matrix.php }}'
tools: 'composer'
coverage: 'none'
ini-values: 'memory_limit=-1'

- uses: 'ramsey/composer-install@v3'
with:
dependency-versions: '${{ matrix.deps }}'

- name: 'Install PHPUnit'
run: 'vendor/bin/simple-phpunit --version'

- name: 'Run PHPUnit tests'
run: 'vendor/bin/simple-phpunit'
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# PipelineBundle

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

[Pipeline](https://github.com/thephpleague/pipeline) bundle for Symfony.

## Install
Expand Down

0 comments on commit 9c71016

Please sign in to comment.