Skip to content

Commit

Permalink
Merge pull request #606 from Roave/feature/#599-add-infection-to-test…
Browse files Browse the repository at this point in the history
…-runs

#599 add infection (mutation testing) to test runs
  • Loading branch information
Ocramius committed May 28, 2020
2 parents aa017e6 + 98f0b21 commit 98870a8
Show file tree
Hide file tree
Showing 19 changed files with 1,565 additions and 350 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/benchmarks.yml
@@ -0,0 +1,64 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

name: "Benchmarks"

on:
pull_request:
push:
branches:
- "master"

jobs:
benchmarks:
name: "Run benchmarks"

runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
dependencies:
- "locked"
php-version:
- "7.4"
operating-system:
- "ubuntu-latest"
- "windows-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: mbstring

- name: "Cache dependencies"
uses: "actions/cache@v2"
with:
path: |
~/.composer/cache
vendor
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"

- name: "Install highest dependencies"
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --no-interaction --no-progress --no-suggest"

- name: "Install locked dependencies"
if: ${{ matrix.dependencies == 'locked' }}
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Install PhpBench"
run: "composer require --dev --prefer-stable --no-interaction --no-progress --no-suggest phpbench/phpbench:^0.17.0"

- name: "PhpBench"
run: "vendor/bin/phpbench run --progress=dots --iterations=1"
252 changes: 0 additions & 252 deletions .github/workflows/build.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/coding-standards.yml
@@ -0,0 +1,60 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

name: "Check Coding Standards"

on:
pull_request:
push:
branches:
- "master"

jobs:
coding-standards:
name: "Check Coding Standards"

runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
dependencies:
- "locked"
php-version:
- "7.4"
operating-system:
- "ubuntu-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: mbstring

- name: "Cache dependencies"
uses: "actions/cache@v2"
with:
path: |
~/.composer/cache
vendor
key: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"
restore-keys: "php-${{ matrix.php-version }}-${{ matrix.dependencies }}"

- name: "Install lowest dependencies"
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"

- name: "Install highest dependencies"
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --no-interaction --no-progress --no-suggest"

- name: "Install locked dependencies"
if: ${{ matrix.dependencies == 'locked' }}
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Coding Standard"
run: "vendor/bin/phpcs"

0 comments on commit 98870a8

Please sign in to comment.