Skip to content
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
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
test:
name: PHP ${{ matrix.php }}${{ matrix.prefer_lowest == '--prefer-lowest' && ' (lowest)' || '' }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: ['7.4']
prefer_lowest: ['', '--prefer-lowest']

Comment thread
rick-lam marked this conversation as resolved.
steps:
- name: Checkout
uses: actions/checkout@v5

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2

- name: Get Composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"

- name: Cache Composer packages
uses: actions/cache@v5
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-${{ matrix.php }}-${{ matrix.prefer_lowest }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-${{ matrix.php }}-
Comment thread
rick-lam marked this conversation as resolved.

- name: Pin Composer platform to the runtime PHP version
run: composer config platform.php "$(php -r 'echo PHP_VERSION;')"

- name: Install dependencies
run: composer update --no-interaction --prefer-dist ${{ matrix.prefer_lowest }}

Comment thread
rick-lam marked this conversation as resolved.
- name: Lint (phpcs)
run: vendor/bin/phpcs -p --warning-severity=0 src/ tests/

- name: Unit tests
run: vendor/bin/phpunit
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

[![Latest Version on Packagist](https://img.shields.io/packagist/v/graze/parallel-process.svg?style=flat-square)](https://packagist.org/packages/graze/parallel-process)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/graze/parallel-process/master.svg?style=flat-square)](https://travis-ci.org/graze/parallel-process)
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/graze/parallel-process.svg?style=flat-square)](https://scrutinizer-ci.com/g/graze/parallel-process/code-structure)
[![Quality Score](https://img.shields.io/scrutinizer/g/graze/parallel-process.svg?style=flat-square)](https://scrutinizer-ci.com/g/graze/parallel-process)
[![Build Status](https://img.shields.io/github/actions/workflow/status/graze/parallel-process/ci.yml?branch=master&style=flat-square)](https://github.com/graze/parallel-process/actions/workflows/ci.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/graze/parallel-process.svg?style=flat-square)](https://packagist.org/packages/graze/parallel-process)

Run multiple `Symfony\Process`'s at the same time.
Expand Down