Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): update CI #12

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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