Skip to content

Commit

Permalink
Force php 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gertvdb committed Feb 2, 2021
1 parent 047e855 commit e2264a0
Show file tree
Hide file tree
Showing 31 changed files with 469 additions and 3,951 deletions.
5 changes: 5 additions & 0 deletions .ahoy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ahoyapi: v2
commands:
composer:
cmd: docker-compose run -w /var/www/html composer composer "$@"
usage: Run Composer commands in the composer container.
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
| Q | A
| ------------- | ---
| Bug fix? | yes/no
| New feature? | yes/no
| Deprecations? | yes/no
| Tickets | Fix #... <!-- prefix each issue number with "Fix #", if any -->
| JIRA | ...
| License | MIT
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.
Guidelines:
- Always add tests and ensure they pass.
- Never break backward compatibility.
-->
31 changes: 31 additions & 0 deletions .github/workflows/coding-standard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Coding Standards

on:
pull_request: null
push:
branches:
- develop
- master

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.4']

name: Coding Standards [${{ matrix.php }}]
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- run: git --version
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "GitHub Action"
- run: git --version
- run: composer clearcache
- run: composer install --no-progress --ansi
- run: composer ecs
31 changes: 31 additions & 0 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Static Analysis

on:
pull_request: null
push:
branches:
- develop
- master

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.4']

name: Unit Tests [${{ matrix.php }}]
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- run: git --version
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "GitHub Action"
- run: git --version
- run: composer clearcache
- run: composer install --no-progress --ansi
- run: composer phpstan
31 changes: 31 additions & 0 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Unit Tests

on:
pull_request: null
push:
branches:
- develop
- master

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.4']

name: Unit Tests [${{ matrix.php }}]
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- run: git --version
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "GitHub Action"
- run: git --version
- run: composer clearcache
- run: composer install --no-progress --ansi
- run: composer phpunit
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
vendor
phpstan.neon
.cache
composer.lock
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

40 changes: 21 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,40 @@
],
"repositories": [],
"require": {
"php": ">=7.4",
"symfony/symfony": "^5.1"
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "^1.0",
"phpunit/phpunit": "^8.5",
"squizlabs/php_codesniffer": "^3.5"
"phpstan/phpstan": "0.12.69",
"symplify/easy-coding-standard": "^9.0",
"symplify/phpstan-extensions": "^9.0",
"symplify/phpstan-php-config": "^9.0",
"rector/rector": "^0.9.18",
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": {
"Tactics\\LegacyBridgeBundle\\": ""
"gertvdb\\LegacyBridgeBundle\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"gertvdb\\LegacyBridgeBundle\\Tests\\": "tests"
}
},
"scripts": {
"phpcs": [
"vendor/bin/phpcs"
],
"phpcbf": [
"vendor/bin/phpcbf"
"ecs": [
"./vendor/bin/ecs check --config ecs.php --fix"
],
"phpunit": [
"vendor/bin/phpunit --configuration=phpunit.xml --colors=always --testdox --coverage-clover build/logs/clover.xml"
],
"codingStandards": [
"@phpcs",
"@phpcbf"
"./vendor/bin/phpunit"
],
"test": [
"@phpunit"
"phpstan": [
"vendor/symplify/phpstan-php-config/bin/phpstan-php-config convert phpstan.php",
"vendor/bin/phpstan analyse --ansi --error-format symplify"
],
"build": [
"@codingStandards",
"@phpunit"
"rector": [
"./vendor/bin/rector process --config rector.php"
]
}
}
Loading

0 comments on commit e2264a0

Please sign in to comment.