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

Switched from CircleCI to GitHub actions #171

Merged
merged 1 commit into from
Oct 1, 2021
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
64 changes: 64 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Build

on:
push:
pull_request:

jobs:
json-validation:
name: Json validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: shivammathur/setup-php@v2
with:
php-version: 7.3

- name: Validate composer.json
run: composer validate

tests:
needs: [ json-validation ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: [ '7.3', '7.4', '8.0' ]
composer-deps: [ 'lowest', 'locked', 'highest' ]
php-unit-versions: [ '8.5.10', '9.0', '9.3', '9.5' ]
exclude:
- composer-deps: 'lowest'
php-unit-versions: '9.0'
- composer-deps: 'lowest'
php-unit-versions: '9.3'
- composer-deps: 'lowest'
php-unit-versions: '9.5'
- composer-deps: 'locked'
php-unit-versions: '8.5.10'
- composer-deps: 'highest'
php-unit-versions: '8.5.10'
name: Tests - PHP ${{ matrix.php-versions }} - Deps ${{ matrix.composer-deps }} - PHPUnit ${{ matrix.php-unit-versions }}
steps:
- uses: actions/checkout@v2

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Require PHPUnit
run: composer require "phpunit/phpunit:~${{ matrix.php-unit-versions }}" --no-update;

- name: Composer install
uses: ramsey/composer-install@v1
with:
dependency-versions: "${{ matrix.composer-deps }}"

- name: Static analysis
run: bin/phpstan.phar analyze src tests

- name: Run tests
run: |
find tests/ -name "*Test.php" | php fastest -v
./fastest -x phpunit.xml.dist -v "bin/phpunit {}"
bin/behat --config=adapters/Behat/behat.yml
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Fastest - simple parallel testing execution
===========================================

[![Build Status](https://secure.travis-ci.org/liuggio/fastest.png?branch=master)](http://travis-ci.org/liuggio/fastest)
![example branch parameter](https://github.com/liuggio/fastest/actions/workflows/build.yml/badge.svg?branch=master)
[![Latest Stable Version](https://poser.pugx.org/liuggio/fastest/v/stable.svg)](https://packagist.org/packages/liuggio/fastest) [![Latest Unstable Version](https://poser.pugx.org/liuggio/fastest/v/unstable.svg)](https://packagist.org/packages/liuggio/fastest)

## Only one thing
Expand Down Expand Up @@ -268,10 +268,6 @@ If you want to use it with phpunit you may want to install phpunit/phpunit as de

### Run this test with `fastest`

**Easy** see [.travis.yml](.travis.yml#L18) file

## The arguments:

```
Usage:
fastest [-p|--process="..."] [-b|--before="..."] [-x|--xml="..."] [-o|--preserve-order] [--no-errors-summary] [execute]
Expand All @@ -295,6 +291,8 @@ Options:

```

e.g. `./fastest -x phpunit.xml.dist -v "bin/phpunit {}"`

### Known problems

If you're faceing problems with unknown command errors, make sure your [variables-order](http://us.php.net/manual/en/ini.core.php#ini.variables-order) `php.ini` setting contains `E`. If not, your enviroment variables are not set, and commands that are in your `PATH` will not work.
Expand Down