Skip to content

Commit

Permalink
Merge pull request #192 from ergebnis/feature/synchronize
Browse files Browse the repository at this point in the history
Enhancement: Synchronize with ergebnis/php-library-template
  • Loading branch information
localheinz authored Dec 19, 2019
2 parents e040c35 + d4d222f commit 0948169
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ to run all the tests.

We are using [`infection/infection`](https://github.com/infection/infection) to ensure a minimum quality of the tests.

Enable `pcov` or `Xdebug` and run
Enable `Xdebug` and run

```
$ make mutation-tests
Expand Down
12 changes: 6 additions & 6 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ branches:
required_approving_review_count: 1
required_status_checks:
contexts:
- "Coding Standards (7.1)"
- "Dependency Analysis (7.4)"
- "Static Code Analysis (7.4)"
- "Coding Standards (7.1, locked)"
- "Dependency Analysis (7.4, locked)"
- "Static Code Analysis (7.4, locked)"
- "Tests (7.1, lowest)"
- "Tests (7.1, locked)"
- "Tests (7.1, highest)"
Expand All @@ -25,9 +25,9 @@ branches:
- "Tests (7.4, lowest)"
- "Tests (7.4, locked)"
- "Tests (7.4, highest)"
- "Code Coverage (7.4)"
- "Mutation Tests (7.4)"
- "Benchmarks (7.4)"
- "Code Coverage (7.4, locked)"
- "Mutation Tests (7.4, locked)"
- "Benchmarks (7.4, locked)"
- "codecov/patch"
- "codecov/project"
strict: false
Expand Down
52 changes: 35 additions & 17 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ jobs:
php-version:
- 7.1

dependencies:
- locked

steps:
- name: "Checkout"
uses: actions/[email protected]

- name: "Install PHP with extensions"
uses: shivammathur/[email protected].0
uses: shivammathur/[email protected].1
with:
coverage: none
extensions: "mbstring"
Expand All @@ -39,14 +42,14 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.composer/cache
key: php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('**/composer.lock') }}
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
php-${{ matrix.php-version }}-composer-locked-
php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
- name: "Install locked dependencies with composer"
run: composer install --no-interaction --no-progress --no-suggest

- name: "Run localheinz/composer-normalize"
- name: "Run ergebnis/composer-normalize"
uses: docker://localheinz/composer-normalize-action:0.5.2
with:
args: --dry-run
Expand Down Expand Up @@ -75,12 +78,15 @@ jobs:
php-version:
- 7.4

dependencies:
- locked

steps:
- name: "Checkout"
uses: actions/[email protected]

- name: "Install PHP with extensions"
uses: shivammathur/[email protected].0
uses: shivammathur/[email protected].1
with:
coverage: none
extensions: "mbstring"
Expand All @@ -90,15 +96,15 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.composer/cache
key: php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('**/composer.lock') }}
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
php-${{ matrix.php-version }}-composer-locked-
php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
- name: "Install locked dependencies with composer"
run: composer install --no-interaction --no-progress --no-suggest

- name: "Run maglnet/composer-require-checker"
uses: docker://localheinz/composer-require-checker-action:1.1.1
uses: docker://webfactory/composer-require-checker:2.0.0

static-code-analysis:
name: "Static Code Analysis"
Expand All @@ -110,12 +116,15 @@ jobs:
php-version:
- 7.4

dependencies:
- locked

steps:
- name: "Checkout"
uses: actions/[email protected]

- name: "Install PHP with extensions"
uses: shivammathur/[email protected].0
uses: shivammathur/[email protected].1
with:
coverage: none
extensions: "mbstring"
Expand Down Expand Up @@ -158,7 +167,7 @@ jobs:
uses: actions/[email protected]

- name: "Install PHP with extensions"
uses: shivammathur/[email protected].0
uses: shivammathur/[email protected].1
with:
coverage: none
extensions: "mbstring"
Expand Down Expand Up @@ -203,12 +212,15 @@ jobs:
php-version:
- 7.4

dependencies:
- locked

steps:
- name: "Checkout"
uses: actions/[email protected]

- name: "Install PHP with extensions"
uses: shivammathur/[email protected].0
uses: shivammathur/[email protected].1
with:
coverage: xdebug
extensions: "mbstring"
Expand All @@ -218,9 +230,9 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.composer/cache
key: php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('**/composer.lock') }}
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
php-${{ matrix.php-version }}-composer-locked-
php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
- name: "Install locked dependencies with composer"
run: composer install --no-interaction --no-progress --no-suggest
Expand All @@ -246,12 +258,15 @@ jobs:
php-version:
- 7.4

dependencies:
- locked

steps:
- name: "Checkout"
uses: actions/[email protected]

- name: "Install PHP with extensions"
uses: shivammathur/[email protected].0
uses: shivammathur/[email protected].1
with:
coverage: xdebug
extensions: "mbstring"
Expand All @@ -261,7 +276,7 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.composer/cache
key: php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('**/composer.lock') }}
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
php-${{ matrix.php-version }}-composer-locked-
Expand All @@ -281,6 +296,9 @@ jobs:
php-version:
- 7.4

dependencies:
- locked

steps:
- name: "Checkout"
uses: actions/[email protected]
Expand All @@ -296,9 +314,9 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.composer/cache
key: php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('**/composer.lock') }}
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
php-${{ matrix.php-version }}-composer-locked-
php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
- name: "Install locked dependencies with composer"
run: composer install --no-interaction --no-progress --no-suggest
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ coding-standards: vendor ## Fixes code style issues with friendsofphp/php-cs-fix

.PHONY: dependency-analysis
dependency-analysis: vendor ## Runs a dependency analysis with maglnet/composer-require-checker
docker run --interactive --rm --tty --workdir=/app --volume ${PWD}:/app localheinz/composer-require-checker-action:1.1.1
docker run --interactive --rm --tty --volume ${PWD}:/app webfactory/composer-require-checker:2.0.0

.PHONY: help
help: ## Displays this list of targets with descriptions
Expand Down

0 comments on commit 0948169

Please sign in to comment.